27 struct KnownFlatFieldKeys;
43 : valueOffset_(valueOffset), valueSize_(valueSize) {
57 operator bool()
const {
58 return (0 != valueOffset_);
66 valueOffset_ == other.valueOffset_ &&
67 valueSize_ == other.valueSize_);
75 valueOffset_ != other.valueOffset_ ||
76 valueSize_ != other.valueSize_);
96 : key_(static_cast<size_t>(-1)) {
105 operator size_t()
const {
113 return (key_ == other.key_);
120 return (key_ != other.key_);
FlatFieldKey()
Initializes as a non-valid key.
FlatFieldRef()
Initializes as a references to nothing.
size_t valueOffset() const
Gets value offset.
FlatFieldRef SerializedFieldRef
size_t valueSize() const
Gets value size.
bool operator==(const FlatFieldRef &other) const
Compares the instance with the given one.
static FlatFieldKey sendingTime()
Key to access the SendingTime field.
Represents a temporary reference to a field in an editable serialized message.
static FlatFieldKey bodyLength()
Key to access the BodyLength field.
KnownFlatFieldKeys KnownSerializedFieldKeys
static FlatFieldKey msgType()
Key to access the MsgType field.
Key to a serialized field - represents another way of accessing fields in an editable serialized mess...
static FlatFieldKey seqNumber()
Key to access the MsgSeqNum field.
Keys are constant during the serialized message lifetime.
FlatFieldKey SerializedFieldKey
static FlatFieldKey dynamic()
Value of the first key to be allocated dynamically.
FlatFieldRef(size_t valueOffset, size_t valueSize)
Message only should use this constructor to initialize a valid reference.
bool operator!=(const FlatFieldRef &other) const
Compares the instance with the given one.