Class Engine::Network::ByteReader¶
ClassList > Engine > Network > ByteReader
Zero-copy binary buffer reader for safe network packet deserialization.
#include <ByteStream.hpp>
Public Functions¶
| Type | Name |
|---|---|
| ByteReader (const uint8_t * data, size_t size) noexcept |
|
| bool | HasMore () noexcept const |
| size_t | Offset () noexcept const |
| bool | Read (T & out) noexcept |
| bool | ReadBytes (uint8_t * out, size_t count) noexcept |
| bool | ReadString (std::string & out) |
| size_t | Remaining () noexcept const |
| void | Reset () noexcept |
Public Functions Documentation¶
function ByteReader¶
function HasMore¶
function Offset¶
function Read¶
function ReadBytes¶
function ReadString¶
function Remaining¶
function Reset¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Network/ByteStream.hpp