foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
reader_membuffer_simple

#include <filesystem_helper.h>

+ Inheritance diagram for reader_membuffer_simple:

Public Member Functions

 reader_membuffer_simple (const void *ptr, t_size size, t_filetimestamp ts=filetimestamp_invalid, bool is_remote=false)
 
const void * get_buffer ()
 
t_size get_buffer_size ()
 
t_filetimestamp get_timestamp (abort_callback &p_abort)
 
bool is_remote ()
 
- Public Member Functions inherited from reader_membuffer_base
 reader_membuffer_base ()
 
bool can_seek ()
 
t_filesize get_position (abort_callback &p_abort)
 
t_filesize get_size (abort_callback &p_abort)
 
bool is_in_memory ()
 
t_size read (void *p_buffer, t_size p_bytes, abort_callback &p_abort)
 
void reopen (abort_callback &p_abort)
 
void seek (t_filesize position, abort_callback &p_abort)
 
void write (const void *p_buffer, t_size p_bytes, abort_callback &p_abort)
 

Private Attributes

pfc::array_staticsize_t< t_uint8m_data
 
bool m_isRemote
 
t_filetimestamp m_ts
 

Additional Inherited Members

- Protected Member Functions inherited from reader_membuffer_base
virtual bool get_content_type (pfc::string_base &)
 
void seek_internal (t_size p_offset)
 

Detailed Description

Definition at line 49 of file filesystem_helper.h.

Constructor & Destructor Documentation

reader_membuffer_simple::reader_membuffer_simple ( const void *  ptr,
t_size  size,
t_filetimestamp  ts = filetimestamp_invalid,
bool  is_remote = false 
)
inline

Definition at line 51 of file filesystem_helper.h.

51  : m_isRemote(is_remote), m_ts(ts) {
53  memcpy(m_data.get_ptr(), ptr, size);
54  }
const t_item * get_ptr() const
Definition: array.h:52
pfc::array_staticsize_t< t_uint8 > m_data
void set_size_discard(t_size p_size)
Definition: array.h:36

Member Function Documentation

const void* reader_membuffer_simple::get_buffer ( )
inlinevirtual

Implements reader_membuffer_base.

Definition at line 55 of file filesystem_helper.h.

55 {return m_data.get_ptr();}
const t_item * get_ptr() const
Definition: array.h:52
pfc::array_staticsize_t< t_uint8 > m_data
t_size reader_membuffer_simple::get_buffer_size ( )
inlinevirtual

Implements reader_membuffer_base.

Definition at line 56 of file filesystem_helper.h.

56 {return m_data.get_size();}
pfc::array_staticsize_t< t_uint8 > m_data
t_size get_size() const
Definition: array.h:51
t_filetimestamp reader_membuffer_simple::get_timestamp ( abort_callback p_abort)
inlinevirtual

Implements reader_membuffer_base.

Definition at line 57 of file filesystem_helper.h.

57 {return m_ts;}
bool reader_membuffer_simple::is_remote ( )
inline

Definition at line 58 of file filesystem_helper.h.

Field Documentation

pfc::array_staticsize_t<t_uint8> reader_membuffer_simple::m_data
private

Definition at line 60 of file filesystem_helper.h.

bool reader_membuffer_simple::m_isRemote
private

Definition at line 62 of file filesystem_helper.h.

t_filetimestamp reader_membuffer_simple::m_ts
private

Definition at line 61 of file filesystem_helper.h.


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