Server Meshing
Loading...
Searching...
No Matches
ByteReader Class Reference

#include <NetSerilizeCore.hpp>

Collaboration diagram for ByteReader:

Public Member Functions

 ByteReader (const uint8_t *data, int size)
 ByteReader (NetworkMessage &msg)
template<typename T>
bool Read (T &v)
bool ReadU8 (uint8_t &v)
bool ReadU16 (uint16_t &v)
bool ReadU32 (uint32_t &v)
bool ReadF32 (float &v)
bool ReadBytes (void *dst, int len)
bool ReadString (std::string &out, uint8_t maxLen=255)
 ByteReader (const uint8_t *data, int size, std::source_location loc=std::source_location::current())
 ByteReader (NetworkMessage &msg, std::source_location loc=std::source_location::current())
template<typename T>
bool Read (T &v)
bool ReadU8 (uint8_t &v)
bool ReadU16 (uint16_t &v)
bool ReadU32 (uint32_t &v)
bool ReadF32 (float &v)
bool ReadBytes (void *dst, int len)
bool ReadString (std::string &out, uint8_t maxLen=255)

Constructor & Destructor Documentation

◆ ByteReader() [1/4]

ByteReader::ByteReader ( const uint8_t * data,
int size )

◆ ByteReader() [2/4]

ByteReader::ByteReader ( NetworkMessage & msg)

◆ ByteReader() [3/4]

ByteReader::ByteReader ( const uint8_t * data,
int size,
std::source_location loc = std::source_location::current() )

◆ ByteReader() [4/4]

ByteReader::ByteReader ( NetworkMessage & msg,
std::source_location loc = std::source_location::current() )

Member Function Documentation

◆ Read() [1/2]

template<typename T>
bool ByteReader::Read ( T & v)
inline
Here is the call graph for this function:

◆ Read() [2/2]

template<typename T>
bool ByteReader::Read ( T & v)
inline
Here is the call graph for this function:

◆ ReadBytes() [1/2]

bool ByteReader::ReadBytes ( void * dst,
int len )

◆ ReadBytes() [2/2]

bool ByteReader::ReadBytes ( void * dst,
int len )

◆ ReadF32() [1/2]

bool ByteReader::ReadF32 ( float & v)
Here is the call graph for this function:

◆ ReadF32() [2/2]

bool ByteReader::ReadF32 ( float & v)

◆ ReadString() [1/2]

bool ByteReader::ReadString ( std::string & out,
uint8_t maxLen = 255 )
Here is the call graph for this function:

◆ ReadString() [2/2]

bool ByteReader::ReadString ( std::string & out,
uint8_t maxLen = 255 )

◆ ReadU16() [1/2]

bool ByteReader::ReadU16 ( uint16_t & v)

◆ ReadU16() [2/2]

bool ByteReader::ReadU16 ( uint16_t & v)

◆ ReadU32() [1/2]

bool ByteReader::ReadU32 ( uint32_t & v)

◆ ReadU32() [2/2]

bool ByteReader::ReadU32 ( uint32_t & v)

◆ ReadU8() [1/2]

bool ByteReader::ReadU8 ( uint8_t & v)

◆ ReadU8() [2/2]

bool ByteReader::ReadU8 ( uint8_t & v)