Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::SerializationContext Class Reference

Structure containing a serialization/unserialization context states. More...

Public Member Functions

void FlushBits ()
 
void ResetBitPosition ()
 Reset the current bit cursor. More...
 

Public Attributes

Streamstream
 
Endianness endianness = Endianness_BigEndian
 
UInt8 currentBitPos = 8
 
UInt8 currentByte
 

Detailed Description

Structure containing a serialization/unserialization context states.

Member Function Documentation

◆ FlushBits()

void Nz::SerializationContext::FlushBits ( )

Write bits to the stream (if any) and reset the current bit cursor

See also
ResetBitPosition

◆ ResetBitPosition()

void Nz::SerializationContext::ResetBitPosition ( )
inline

Reset the current bit cursor.

Remarks
This function only reset the cursor position, it doesn't do any writing if you wish to write all bits and reset bit position, call FlushBits
See also
FlushBits

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