![]() |
Nexus Engine
v0.0.1
|
Public Member Functions | |
| Packet (std::vector< byte > &storage) noexcept | |
| template<typename T> | |
| void | Write (const T &value) |
| template<typename T> | |
| bool | Read (T &out) |
| bool | ReadString (std::string &out) |
| std::span< const byte > | Data () const noexcept |
| usize | Remaining () const noexcept |
| void | Reset () noexcept |
A read/write cursor over a byte buffer. Integral types go through Wire (big-endian on the wire); other trivially copyable types are copied raw.
|
inlineexplicitnoexcept |
|
nodiscardnoexcept |
|
nodiscard |
|
nodiscard |
|
nodiscardnoexcept |
|
noexcept |
| void Nexus::Network::Packet::Write | ( | const T & | value | ) |