Helper to write network data.
More...
#include <writer.hpp>
|
|
static void | write_uint16 (std::vector< std::byte > &buffer, std::uint16_t value) |
| | Helper to write a 16-bit integer in network byte order.
|
| |
|
static void | write_uint32 (std::vector< std::byte > &buffer, std::uint32_t value) |
| | Helper to write a 32-bit integer in network byte order.
|
| |
|
static void | write_int64 (std::vector< std::byte > &buffer, std::int64_t value) |
| | Helper to write a 64-bit integer in network byte order.
|
| |
|
static void | write_string (std::vector< std::byte > &buffer, const std::string &str) |
| | Helper to write a string with 16-bit length prefix.
|
| |
|
static void | write_bool (std::vector< std::byte > &buffer, bool value) |
| | Helper to write a boolean (1 byte).
|
| |
|
static void | write_uuid (std::vector< std::byte > &buffer, const boost::uuids::uuid &uuid) |
| | Helper to write a UUID (16 bytes).
|
| |
Helper to write network data.