R-Type
R-Type project
KapMirror::NetworkReader Class Reference

Public Member Functions

 NetworkReader (byte *_buffer)
 
 NetworkReader (const ArraySegment< byte > &segment)
 
 NetworkReader (const std::shared_ptr< ArraySegment< byte >> &segment)
 
void reset ()
 Reset the position to 0.
 
template<typename T >
read ()
 Read a value from the buffer. More...
 
byte * readBytes (int count)
 Read a byte array from the buffer. More...
 
std::string readString ()
 Read a string from the buffer. More...
 

Member Function Documentation

◆ read()

template<typename T >
T KapMirror::NetworkReader::read ( )
inline

Read a value from the buffer.

Template Parameters
TThe type of the value
Returns
Value

◆ readBytes()

byte* KapMirror::NetworkReader::readBytes ( int  count)
inline

Read a byte array from the buffer.

Returns
Value

◆ readString()

std::string KapMirror::NetworkReader::readString ( )
inline

Read a string from the buffer.

Returns
Value

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