foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions | Private Attributes
stream_reader_formatter_simple< BE >

#include <filesystem_helper.h>

+ Inheritance diagram for stream_reader_formatter_simple< BE >:

Public Member Functions

 stream_reader_formatter_simple ()
 
 stream_reader_formatter_simple (const void *source, t_size sourceSize)
 
template<typename TSource >
 stream_reader_formatter_simple (const TSource &source)
 
void set_data (const void *source, t_size sourceSize)
 
template<typename TSource >
void set_data (const TSource &source)
 
- Public Member Functions inherited from stream_reader_formatter_simple_ref< BE >
 stream_reader_formatter_simple_ref (const void *source, t_size sourceSize)
 
template<typename TSource >
 stream_reader_formatter_simple_ref (const TSource &source)
 
 stream_reader_formatter_simple_ref ()
 
const void * get_ptr_ () const
 
t_size get_remaining ()
 
void reset ()
 
void set_data (const void *source, t_size sourceSize)
 
template<typename TSource >
void set_data (const TSource &source)
 
- Public Member Functions inherited from stream_reader_formatter< BE >
 stream_reader_formatter (stream_reader &p_stream, abort_callback &p_abort)
 
void read_array (TArray &data)
 
void read_byte_block (TArray &data)
 
void read_int (t_int &p_out)
 
void read_raw (void *p_buffer, t_size p_bytes)
 
void read_raw (TArray &data)
 
void read_string_nullterm (pfc::string_base &out)
 
void skip (t_size p_bytes)
 

Private Member Functions

void onContentChange ()
 

Private Attributes

pfc::array_t< t_uint8m_content
 

Additional Inherited Members

- Data Fields inherited from stream_reader_formatter< BE >
abort_callbackm_abort
 
stream_readerm_stream
 

Detailed Description

template<bool BE = false>
class stream_reader_formatter_simple< BE >

Definition at line 631 of file filesystem_helper.h.

Constructor & Destructor Documentation

template<bool BE = false>
stream_reader_formatter_simple< BE >::stream_reader_formatter_simple ( )
inline

Definition at line 633 of file filesystem_helper.h.

633 {}
template<bool BE = false>
stream_reader_formatter_simple< BE >::stream_reader_formatter_simple ( const void *  source,
t_size  sourceSize 
)
inline

Definition at line 634 of file filesystem_helper.h.

634 {set_data(source,sourceSize);}
void set_data(const void *source, t_size sourceSize)
template<bool BE = false>
template<typename TSource >
stream_reader_formatter_simple< BE >::stream_reader_formatter_simple ( const TSource &  source)
inline

Definition at line 635 of file filesystem_helper.h.

635 {set_data(source);}
void set_data(const void *source, t_size sourceSize)

Member Function Documentation

template<bool BE = false>
void stream_reader_formatter_simple< BE >::onContentChange ( )
inlineprivate

Definition at line 646 of file filesystem_helper.h.

646  {
648  }
pfc::array_t< t_uint8 > m_content
void set_data(const void *source, t_size sourceSize)
template<bool BE = false>
void stream_reader_formatter_simple< BE >::set_data ( const void *  source,
t_size  sourceSize 
)
inline

Definition at line 637 of file filesystem_helper.h.

637  {
638  m_content.set_data_fromptr(reinterpret_cast<const t_uint8*>(source), sourceSize);
639  onContentChange();
640  }
pfc::array_t< t_uint8 > m_content
void set_data_fromptr(const t_source *p_buffer, t_size p_count)
Warning: buffer pointer must not point to buffer allocated by this array (fixme). ...
Definition: array.h:139
template<bool BE = false>
template<typename TSource >
void stream_reader_formatter_simple< BE >::set_data ( const TSource &  source)
inline

Definition at line 641 of file filesystem_helper.h.

641  {
642  m_content = source;
643  onContentChange();
644  }
pfc::array_t< t_uint8 > m_content

Field Documentation

template<bool BE = false>
pfc::array_t<t_uint8> stream_reader_formatter_simple< BE >::m_content
private

Definition at line 649 of file filesystem_helper.h.


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