|
protobuf-c 1.5.1
Protocol Buffers implementation in C
|
Structure for defining a virtual append-only buffer. More...
Data Fields | |
| void(* | append )(ProtobufCBuffer *buffer, size_t len, const uint8_t *data) |
| Append function. | |
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.