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

Chunk data writer. More...

#include <ChunkWriter.hpp>

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

Static Public Member Functions

static bool write (T const *begin, T const *end, ChunkType type, BinaryChunk &chunk)
 Writes a subchunk value into a chunk.
 
static bool write (T const &value, ChunkType type, BinaryChunk &chunk)
 Writes a subchunk value into a chunk.
 
- Static Public Member Functions inherited from castor3d::ChunkWriterBase
static bool write (uint8_t const *begin, uint8_t const *end, ChunkType type, BinaryChunk &chunk) noexcept
 Writes a subchunk value into a chunk.
 

Detailed Description

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

Chunk data writer.

Member Function Documentation

◆ write() [1/2]

template<typename T >
static bool castor3d::ChunkWriter< T >::write ( T const & value,
ChunkType type,
BinaryChunk & chunk )
inlinestatic

Writes a subchunk value into a chunk.

Parameters
[in]valueThe value
[in]typeThe subchunk type
[in]chunkThe chunk
Returns
false if any error occured

References castor3d::getBuffer(), castor3d::getDataSize(), castor3d::prepareChunkDataT(), and castor3d::ChunkWriterBase::write().

Here is the call graph for this function:

◆ write() [2/2]

template<typename T >
static bool castor3d::ChunkWriter< T >::write ( T const * begin,
T const * end,
ChunkType type,
BinaryChunk & chunk )
inlinestatic

Writes a subchunk value into a chunk.

Parameters
[in]beginThe values begin
[in]endThe values end
[in]typeThe subchunk type
[in]chunkThe chunk
Returns
false if any error occured

References castor3d::prepareChunkDataT(), and castor3d::ChunkWriterBase::write().

Referenced by castor3d::BinaryWriterBase< TWritten >::doWriteChunk(), castor3d::BinaryWriterBase< TWritten >::doWriteChunk(), castor3d::BinaryWriterBase< TWritten >::doWriteChunk(), castor3d::BinaryWriterBase< TWritten >::doWriteChunk(), castor3d::BinaryWriterBase< TWritten >::doWriteChunk(), and castor3d::BinaryWriterBase< TWritten >::doWriteChunk().

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: