GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::DecoderBuffer Class Reference

#include <decoder_buffer.h>

Public Member Functions

 DecoderBuffer ()
 DecoderBuffer (const DecoderBuffer &buf)=default
DecoderBuffer & operator= (const DecoderBuffer &buf)=default
void Init (const char *data, size_t data_size)
void Init (const char *data, size_t data_size, uint16_t version)
bool StartBitDecoding (bool decode_size, uint64_t *out_size)
void EndBitDecoding ()
bool DecodeLeastSignificantBits32 (uint32_t nbits, uint32_t *out_value)
template<typename T>
bool Decode (T *out_val)
bool Decode (void *out_data, size_t size_to_decode)
template<typename T>
bool Peek (T *out_val)
bool Peek (void *out_data, size_t size_to_peek)
void Advance (int64_t bytes)
void StartDecodingFrom (int64_t offset)
void set_bitstream_version (uint16_t version)
const char * data_head () const
int64_t remaining_size () const
int64_t decoded_size () const
bool bit_decoder_active () const
uint16_t bitstream_version () const

Friends

class BufferBitCodingTest

Constructor & Destructor Documentation

◆ DecoderBuffer() [1/2]

draco::DecoderBuffer::DecoderBuffer ( )
Here is the caller graph for this function:

◆ DecoderBuffer() [2/2]

draco::DecoderBuffer::DecoderBuffer ( const DecoderBuffer & buf)
default

Member Function Documentation

◆ Advance()

void draco::DecoderBuffer::Advance ( int64_t bytes)
inline
Here is the caller graph for this function:

◆ bit_decoder_active()

bool draco::DecoderBuffer::bit_decoder_active ( ) const
inline
Here is the caller graph for this function:

◆ bitstream_version()

uint16_t draco::DecoderBuffer::bitstream_version ( ) const
inline
Here is the caller graph for this function:

◆ data_head()

const char * draco::DecoderBuffer::data_head ( ) const
inline
Here is the caller graph for this function:

◆ Decode() [1/2]

template<typename T>
bool draco::DecoderBuffer::Decode ( T * out_val)
inline
Here is the caller graph for this function:

◆ Decode() [2/2]

bool draco::DecoderBuffer::Decode ( void * out_data,
size_t size_to_decode )
inline

◆ decoded_size()

int64_t draco::DecoderBuffer::decoded_size ( ) const
inline

◆ DecodeLeastSignificantBits32()

bool draco::DecoderBuffer::DecodeLeastSignificantBits32 ( uint32_t nbits,
uint32_t * out_value )
inline
Here is the caller graph for this function:

◆ EndBitDecoding()

void draco::DecoderBuffer::EndBitDecoding ( )
Here is the caller graph for this function:

◆ Init() [1/2]

void draco::DecoderBuffer::Init ( const char * data,
size_t data_size )
Here is the caller graph for this function:

◆ Init() [2/2]

void draco::DecoderBuffer::Init ( const char * data,
size_t data_size,
uint16_t version )

◆ operator=()

DecoderBuffer & draco::DecoderBuffer::operator= ( const DecoderBuffer & buf)
default

◆ Peek() [1/2]

template<typename T>
bool draco::DecoderBuffer::Peek ( T * out_val)
inline
Here is the caller graph for this function:

◆ Peek() [2/2]

bool draco::DecoderBuffer::Peek ( void * out_data,
size_t size_to_peek )
inline

◆ remaining_size()

int64_t draco::DecoderBuffer::remaining_size ( ) const
inline
Here is the caller graph for this function:

◆ set_bitstream_version()

void draco::DecoderBuffer::set_bitstream_version ( uint16_t version)
inline
Here is the caller graph for this function:

◆ StartBitDecoding()

bool draco::DecoderBuffer::StartBitDecoding ( bool decode_size,
uint64_t * out_size )
Here is the caller graph for this function:

◆ StartDecodingFrom()

void draco::DecoderBuffer::StartDecodingFrom ( int64_t offset)
inline

◆ BufferBitCodingTest

friend class BufferBitCodingTest
friend

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