foobar2000 SDK  2015-08-03
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 252 of file filesystem_helper.h.

Member Typedef Documentation

Definition at line 262 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 254 of file filesystem_helper.h.

254  {
255  p_abort.check();
256  t_size base = m_buffer.get_size();
257  if (base + p_bytes < base) throw std::bad_alloc();
258  m_buffer.set_size(base + p_bytes);
259  memcpy( (t_uint8*) m_buffer.get_ptr() + base, p_buffer, p_bytes );
260  }
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 264 of file filesystem_helper.h.


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