foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::string_buffer

#include <string_base.h>

Public Member Functions

 string_buffer (string_base &p_string, t_size p_requested_length)
 
 ~string_buffer ()
 
char * get_ptr ()
 
 operator char * ()
 

Private Attributes

char * m_buffer
 
string_basem_owner
 

Detailed Description

Definition at line 455 of file string_base.h.

Constructor & Destructor Documentation

pfc::string_buffer::string_buffer ( string_base p_string,
t_size  p_requested_length 
)
inlineexplicit

Definition at line 460 of file string_base.h.

460 : m_owner(p_string) {m_buffer = m_owner.lock_buffer(p_requested_length);}
string_base & m_owner
Definition: string_base.h:457
virtual char * lock_buffer(t_size p_requested_length)=0
pfc::string_buffer::~string_buffer ( )
inline

Definition at line 461 of file string_base.h.

string_base & m_owner
Definition: string_base.h:457
virtual void unlock_buffer()=0

Member Function Documentation

char* pfc::string_buffer::get_ptr ( )
inline

Definition at line 462 of file string_base.h.

462 {return m_buffer;}
pfc::string_buffer::operator char * ( )
inline

Definition at line 463 of file string_base.h.

463 {return m_buffer;}

Field Documentation

char* pfc::string_buffer::m_buffer
private

Definition at line 458 of file string_base.h.

string_base& pfc::string_buffer::m_owner
private

Definition at line 457 of file string_base.h.


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