foobar2000 SDK  2015-01-14
Public Types | Public Member Functions | Data Fields
stream_writer_buffer_simple

#include <filesystem_helper.h>

+ Inheritance diagram for stream_writer_buffer_simple:

Public Types

typedef pfc::array_t< t_uint8, pfc::alloc_fastt_buffer
 

Public Member Functions

void write (const void *p_buffer, t_size p_bytes, abort_callback &p_abort)
 

Data Fields

pfc::array_t< t_uint8, pfc::alloc_fastm_buffer
 

Detailed Description

Definition at line 244 of file filesystem_helper.h.

Member Typedef Documentation

Definition at line 254 of file filesystem_helper.h.

Member Function Documentation

void stream_writer_buffer_simple::write ( const void *  p_buffer,
t_size  p_bytes,
abort_callback p_abort 
)
inline

Definition at line 246 of file filesystem_helper.h.

246  {
247  p_abort.check();
248  t_size base = m_buffer.get_size();
249  if (base + p_bytes < base) throw std::bad_alloc();
250  m_buffer.set_size(base + p_bytes);
251  memcpy( (t_uint8*) m_buffer.get_ptr() + base, p_buffer, p_bytes );
252  }
const t_item * get_ptr() const
Definition: array.h:213
uint8_t t_uint8
Definition: int_types.h:9
size_t t_size
Definition: int_types.h:48
void set_size(t_size p_size)
Definition: array.h:104
t_size get_size() const
Definition: array.h:130
pfc::array_t< t_uint8, pfc::alloc_fast > m_buffer

Field Documentation

pfc::array_t<t_uint8,pfc::alloc_fast> stream_writer_buffer_simple::m_buffer

Definition at line 256 of file filesystem_helper.h.


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