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