24 #include "field_codec_fixed.h"
35 unsigned size()
override;
36 unsigned size(
const uint32& wire_value)
override;
42 unsigned this_size(
const uint32& wire_value);
47 ONE_BYTE_MAX_ID = (1 << 7) - 1,
48 TWO_BYTE_MAX_ID = (1 << 15) - 1
53 SHORT_FORM_ID_BYTES = 1,
54 LONG_FORM_ID_BYTES = 2
unsigned size() override
Calculate the size (in bits) of an empty field.
Dynamic Compact Control Language namespace.
void validate() override
Validate a field. Use require() inside your overloaded validate() to assert requirements or throw Exc...
unsigned min_size() override
Calculate minimum size of the field in bits.
google::protobuf::uint32 uint32
an unsigned 32 bit integer
unsigned max_size() override
Calculate maximum size of the field in bits.
uint32 decode(Bitset *bits) override
Decode a field. If the field is empty (i.e. was encoded using the zero-argument encode()),...
Bitset encode() override
Encode an empty field.
A variable size container of bits (subclassed from std::deque<bool>) with an optional hierarchy....
Provides the default 1 byte or 2 byte DCCL ID codec.
Base class for static-typed (no dccl::any) field encoders/decoders. Most single-valued user defined v...