foobar2000 SDK
2015-08-03
|
#include <mem_block_container.h>
Public Member Functions | |
void | copy (const mem_block_container &p_source) |
void | from_stream (stream_reader *p_stream, t_size p_bytes, abort_callback &p_abort) |
virtual const void * | get_ptr () const =0 |
virtual void * | get_ptr ()=0 |
virtual t_size | get_size () const =0 |
const mem_block_container & | operator= (const mem_block_container &p_source) |
void | reset () |
void | set (const void *p_buffer, t_size p_size) |
void | set (const mem_block_container &source) |
template<typename t_source > | |
void | set (const t_source &source) |
virtual void | set_size (t_size p_size)=0 |
Protected Member Functions | |
mem_block_container () | |
~mem_block_container () | |
Generic interface for a memory block; used by various other interfaces to return memory blocks while allowing caller to allocate.
Definition at line 2 of file mem_block_container.h.
|
inlineprotected |
Definition at line 24 of file mem_block_container.h.
|
inlineprotected |
Definition at line 25 of file mem_block_container.h.
|
inline |
Definition at line 18 of file mem_block_container.h.
void mem_block_container::from_stream | ( | stream_reader * | p_stream, |
t_size | p_bytes, | ||
abort_callback & | p_abort | ||
) |
Definition at line 3 of file mem_block_container.cpp.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 21 of file mem_block_container.h.
|
inline |
Definition at line 19 of file mem_block_container.h.
void mem_block_container::set | ( | const void * | p_buffer, |
t_size | p_size | ||
) |
Definition at line 9 of file mem_block_container.cpp.
|
inline |
Definition at line 12 of file mem_block_container.h.
|
inline |
Definition at line 13 of file mem_block_container.h.
|
pure virtual |