libsignal-protocol-c
master
|
#include <protobuf-c.h>
Public Attributes | |
void(* | append )(ProtobufCBuffer *buffer, size_t len, const uint8_t *data) |
Structure for defining a virtual append-only buffer. Used by protobuf_c_message_pack_to_buffer() to abstract the consumption of serialized bytes.
ProtobufCBuffer
"subclasses" may be defined on the stack. For example, to write to a FILE
object:
To use this new type of ProtobufCBuffer, it could be called as follows:
void(* ProtobufCBuffer::append) (ProtobufCBuffer *buffer, size_t len, const uint8_t *data) |
Append function. Consumes the len
bytes stored at data
.