GetType() const
Indicates the `Appender` type (whether appending to a `Message` or data buffer).
AppendBytes()
Appends bytes to the `Appender` object.
Append()
GetAppendedLength() const
Returns the number of bytes appended so far using `Appender` methods. Can be used independent of the `Type` of `Appender`.
GetMessage() const
Returns the `Message` associated with `Appender`. MUST be used when `GetType() == kMessage`. Otherwise its behavior is undefined.
GetBufferStart() const
Returns a pointer to the start of the data buffer associated with `Appender`. MUST be used when `GetType() == kBuffer`. Otherwise its behavior is undefined.
GetAsData() const
Gets the data buffer associated with `Appender` as a `Data`. MUST be used when `GetType() == kBuffer`. Otherwise its behavior is undefined. @pram[out] aData A reference to a `Data` to output the data buffer.