 |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_core_comm_HeaderBufferInfo_h
7 #define swcdb_core_comm_HeaderBufferInfo_h
16 namespace SWC {
namespace Comm {
32 encoder = Core::Encoder::Type::PLAIN;
38 if(
encoder != Core::Encoder::Type::PLAIN)
53 void decode(
const uint8_t** bufp,
size_t* remainp) {
56 if(
encoder != Core::Encoder::Type::PLAIN)
65 void print(std::ostream& out)
const;
79 #ifdef SWC_IMPL_SOURCE
83 #endif // swcdb_core_comm_HeaderBufferInfo_h
uint32_t size_plain
Buffer set if Encoder not PLAIN.
SWC_CAN_INLINE void encode(uint8_t **bufp) const
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi32(uint32_t val) noexcept
SWC_CAN_INLINE void encode_i32(uint8_t **bufp, uint32_t val) noexcept
uint32_t chksum
Buffer checksum.
struct SWC::Comm::Header __attribute__((packed))
SWC_CAN_INLINE BufferInfo() noexcept
Core::Encoder::Type encoder
Buffer Encoder.
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
SWC_CAN_INLINE void reset() noexcept
uint32_t size
Buffer size.
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp)
void print(std::ostream &out) const
Core::Encoder::Type Encoder
SWC_CAN_INLINE uint8_t encoded_length() const noexcept
constexpr SWC_CAN_INLINE void encode_vi32(uint8_t **bufp, uint32_t val)
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)