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_);
Key to a serialized field - represents another way of accessing fields in an editable serialized mess...
friend struct KnownFlatFieldKeys
bool operator==(const FlatFieldKey &other) const
Compares to the given instance.
bool operator!=(const FlatFieldKey &other) const
Compares to the given instance.
FlatFieldKey()
Initializes as a non-valid key.
Represents a temporary reference to a field in an editable serialized message.
FlatFieldRef()
Initializes as a references to nothing.
size_t valueOffset() const
Gets value offset.
size_t valueSize() const
Gets value size.
bool operator==(const FlatFieldRef &other) const
Compares the instance with the given one.
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.
KnownFlatFieldKeys KnownSerializedFieldKeys
FlatFieldRef SerializedFieldRef
FlatFieldKey SerializedFieldKey
Keys are constant during the serialized message lifetime.
static FlatFieldKey dynamic()
Value of the first key to be allocated dynamically.
static FlatFieldKey sendingTime()
Key to access the SendingTime field.
static FlatFieldKey msgType()
Key to access the MsgType field.
static FlatFieldKey seqNumber()
Key to access the MsgSeqNum field.
static FlatFieldKey bodyLength()
Key to access the BodyLength field.