|
BCNP 3.2.1
Batched Command Network Protocol
|
Implementation of BCNP packet encoding and decoding functions. More...
#include "bcnp/packet.h"#include <algorithm>#include <array>#include <cmath>#include <cstring>#include <limits>Go to the source code of this file.
Namespaces | |
| namespace | bcnp |
Functions | |
| uint32_t | bcnp::ComputeCrc32 (const uint8_t *data, std::size_t length) |
| Compute CRC32 checksum for data integrity verification. | |
| DecodeViewResult | bcnp::DecodePacketViewWithSize (const uint8_t *data, std::size_t length, std::size_t wireSize) |
| Decode a packet with explicitly provided message wire size. | |
| DecodeViewResult | bcnp::DecodePacketView (const uint8_t *data, std::size_t length) |
| Decode a packet using the global message type registry. | |
Implementation of BCNP packet encoding and decoding functions.
Contains the CRC32 computation, packet view decoding, and payload size calculation. Encoding is handled by template functions in the header.
Definition in file packet.cpp.