JayBeams
0.1
Another project to have fun coding.
|
TODO(#19) all this code should be replaced with Boost.Endian. More...
#include <encoder.hpp>
Static Public Member Functions | |
static void | w (std::size_t size, void *msg, std::size_t offset, T const &x) |
Write a single message or field to a buffer. More... | |
TODO(#19) all this code should be replaced with Boost.Endian.
Definition at line 13 of file encoder.hpp.
|
static |
Write a single message or field to a buffer.
size | the size of the message |
msg | the contents of the message |
offset | where in the message to start encoding |
x | the value to encode |
std::runtime_error | if the buffer cannot hold the message. |
Referenced by jb::itch5::mold_udp_pacer< clock_type >::coalesce(), jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::fillup_header_fields(), jb::itch5::encoder< validate, std::uint16_t >::w(), jb::itch5::encoder< validate, std::uint32_t >::w(), jb::itch5::encoder< validate, std::uint64_t >::w(), and jb::itch5::encoder< validate, timestamp >::w().