foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
mem_block_container_temp_impl

#include <mem_block_container.h>

+ Inheritance diagram for mem_block_container_temp_impl:

Public Member Functions

 mem_block_container_temp_impl (void *p_buffer, t_size p_size)
 
const void * get_ptr () const
 
void * get_ptr ()
 
t_size get_size () const
 
void set_size (t_size p_size)
 
- Public Member Functions inherited from mem_block_container
void copy (const mem_block_container &p_source)
 
void from_stream (stream_reader *p_stream, t_size p_bytes, abort_callback &p_abort)
 
const mem_block_containeroperator= (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)
 

Private Attributes

void * m_buffer
 
t_size m_buffer_size
 
t_size m_size
 

Additional Inherited Members

- Protected Member Functions inherited from mem_block_container
 mem_block_container ()
 
 ~mem_block_container ()
 

Detailed Description

Definition at line 71 of file mem_block_container.h.

Constructor & Destructor Documentation

mem_block_container_temp_impl::mem_block_container_temp_impl ( void *  p_buffer,
t_size  p_size 
)
inline

Member Function Documentation

const void* mem_block_container_temp_impl::get_ptr ( ) const
inlinevirtual

Implements mem_block_container.

Definition at line 74 of file mem_block_container.h.

void* mem_block_container_temp_impl::get_ptr ( )
inlinevirtual

Implements mem_block_container.

Definition at line 75 of file mem_block_container.h.

t_size mem_block_container_temp_impl::get_size ( ) const
inlinevirtual

Implements mem_block_container.

Definition at line 76 of file mem_block_container.h.

void mem_block_container_temp_impl::set_size ( t_size  p_size)
inlinevirtual

Implements mem_block_container.

Definition at line 77 of file mem_block_container.h.

77 {if (p_size > m_buffer_size) throw pfc::exception_overflow(); m_size = p_size;}

Field Documentation

void* mem_block_container_temp_impl::m_buffer
private

Definition at line 80 of file mem_block_container.h.

t_size mem_block_container_temp_impl::m_buffer_size
private

Definition at line 79 of file mem_block_container.h.

t_size mem_block_container_temp_impl::m_size
private

Definition at line 79 of file mem_block_container.h.


The documentation for this class was generated from the following file: