Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
VorbisBufferAdapter Class Reference

Public Member Functions

 VorbisBufferAdapter (const std::shared_ptr< u8 > &buffer, size_t size)
 

Static Public Member Functions

static size_t Read (void *bufferToFill, size_t itemSize, size_t numItems, void *context)
 
static int Seek (void *context, ogg_int64_t offset, int whence)
 
static int Close (void *context)
 
static long Tell (void *context)
 

Private Attributes

std::shared_ptr< u8buffer
 
off_t size
 
off_t offset
 

Constructor & Destructor Documentation

◆ VorbisBufferAdapter()

VorbisBufferAdapter::VorbisBufferAdapter ( const std::shared_ptr< u8 > &  buffer,
size_t  size 
)
inline

Member Function Documentation

◆ Close()

static int VorbisBufferAdapter::Close ( void *  context)
inlinestatic

◆ Read()

static size_t VorbisBufferAdapter::Read ( void *  bufferToFill,
size_t  itemSize,
size_t  numItems,
void *  context 
)
inlinestatic

◆ Seek()

static int VorbisBufferAdapter::Seek ( void *  context,
ogg_int64_t  offset,
int  whence 
)
inlinestatic

◆ Tell()

static long VorbisBufferAdapter::Tell ( void *  context)
inlinestatic

Member Data Documentation

◆ buffer

std::shared_ptr<u8> VorbisBufferAdapter::buffer
private

◆ offset

off_t VorbisBufferAdapter::offset
private

◆ size

off_t VorbisBufferAdapter::size
private

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