#include <array>
#include <cstddef>
#include <cstdint>
#include <cmath>
#include <cstring>
#include <functional>
#include <limits>
#include <optional>
#include <variant>
Go to the source code of this file.
|
| namespace | bcnp |
| |
| namespace | bcnp::detail |
| | Type traits to detect container capabilities for packet storage.
|
| |
|
| uint16_t | bcnp::detail::LoadU16 (const uint8_t *p) |
| |
| uint32_t | bcnp::detail::LoadU32 (const uint8_t *p) |
| |
| int16_t | bcnp::detail::LoadS16 (const uint8_t *p) |
| |
| int32_t | bcnp::detail::LoadS32 (const uint8_t *p) |
| |
| void | bcnp::detail::StoreU16 (uint16_t v, uint8_t *p) |
| |
| void | bcnp::detail::StoreU32 (uint32_t v, uint8_t *p) |
| |
| void | bcnp::detail::StoreS16 (int16_t v, uint8_t *p) |
| |
| void | bcnp::detail::StoreS32 (int32_t v, uint8_t *p) |
| |
| int32_t | bcnp::detail::QuantizeFloat (float value, float scale) |
| |
| float | bcnp::detail::DequantizeFloat (int32_t fixed, float scale) |
| |
| std::optional< MessageInfo > | bcnp::GetMessageInfo (MessageTypeId typeId) |
| |
| std::optional< MessageInfo > | bcnp::GetMessageInfo (uint16_t typeId) |
| |
| bool | bcnp::EncodeHandshake (uint8_t *out, std::size_t capacity) |
| | Encode handshake with default schema hash.
|
| |
| bool | bcnp::EncodeHandshakeWithHash (uint8_t *out, std::size_t capacity, uint32_t schemaHash) |
| | Encode handshake with custom schema hash (for testing)
|
| |
| bool | bcnp::ValidateHandshake (const uint8_t *data, std::size_t length) |
| |
| bool | bcnp::ValidateHandshakeWithHash (const uint8_t *data, std::size_t length, uint32_t expectedHash) |
| | Validate handshake against custom expected hash (for testing)
|
| |
| uint32_t | bcnp::ExtractSchemaHash (const uint8_t *data, std::size_t length) |
| |