Castor3D 0.16.0
Multiplatform 3D engine
Static Public Member Functions | List of all members
castor3d::ChunkParser< T > Class Template Reference

Chunk parser. More...

#include <ChunkParser.hpp>

Inheritance diagram for castor3d::ChunkParser< T >:
Inheritance graph
[legend]
Collaboration diagram for castor3d::ChunkParser< T >:
Collaboration graph
[legend]

Static Public Member Functions

static bool parse (T *values, size_t count, BinaryChunk &chunk)
 Retrieves a value array from a chunk.
 
static bool parse (T &value, BinaryChunk &chunk)
 Retrieves a value from a chunk.
 
- Static Public Member Functions inherited from castor3d::ChunkParserBase
static bool parse (uint8_t *values, size_t size, BinaryChunk &chunk)
 Retrieves a value array from a chunk.
 

Detailed Description

template<typename T>
class castor3d::ChunkParser< T >

Chunk parser.

Member Function Documentation

◆ parse() [1/2]

template<typename T >
static bool castor3d::ChunkParser< T >::parse ( T & value,
BinaryChunk & chunk )
inlinestatic

Retrieves a value from a chunk.

Parameters
[out]valueReceives the parsed value
[in]chunkThe chunk containing the value
Returns
false if any error occured

References castor3d::getBuffer(), castor3d::getDataSize(), castor3d::ChunkParserBase::parse(), and castor3d::prepareChunkDataT().

Here is the call graph for this function:

◆ parse() [2/2]

template<typename T >
static bool castor3d::ChunkParser< T >::parse ( T * values,
size_t count,
BinaryChunk & chunk )
inlinestatic

Retrieves a value array from a chunk.

Parameters
[out]valuesReceives the parsed values
[out]countThe values count
[in]chunkThe chunk containing the values
Returns
false if any error occured

References castor3d::ChunkParserBase::parse(), and castor3d::prepareChunkDataT().

Referenced by castor3d::BinaryParserBase< TParsed >::doParseChunk(), castor3d::BinaryParserBase< TParsed >::doParseChunk(), castor3d::BinaryParserBase< TParsed >::doParseChunk(), castor3d::BinaryParserBase< TParsed >::doParseChunk(), and castor3d::BinaryParserBase< TParsed >::doParseChunk().

Here is the call graph for this function:
Here is the caller graph for this function:

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