20#ifndef ORES_COMMS_MESSAGING_WRITE_HPP
21#define ORES_COMMS_MESSAGING_WRITE_HPP
27#include <boost/uuid/uuid_io.hpp>
52 static void write_int64(std::vector<std::byte>& buffer,
59 const std::string& str);
64 static void write_bool(std::vector<std::byte>& buffer,
bool value);
69 static void write_uuid(std::vector<std::byte>& buffer,
70 const boost::uuids::uuid& uuid);
Contains messaging related infrastructure in the comms library.
Definition compression.hpp:29
Helper to write network data.
Definition writer.hpp:35
static void write_string(std::vector< std::byte > &buffer, const std::string &str)
Helper to write a string with 16-bit length prefix.
Definition writer.cpp:51
static void write_uint32(std::vector< std::byte > &buffer, std::uint32_t value)
Helper to write a 32-bit integer in network byte order.
Definition writer.cpp:33
static void write_uuid(std::vector< std::byte > &buffer, const boost::uuids::uuid &uuid)
Helper to write a UUID (16 bytes).
Definition writer.cpp:60
static void write_bool(std::vector< std::byte > &buffer, bool value)
Helper to write a boolean (1 byte).
Definition writer.cpp:66
static void write_int64(std::vector< std::byte > &buffer, std::int64_t value)
Helper to write a 64-bit integer in network byte order.
Definition writer.cpp:40
static void write_uint16(std::vector< std::byte > &buffer, std::uint16_t value)
Helper to write a 16-bit integer in network byte order.
Definition writer.cpp:28