libcbor 0.12.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
|
Go to the source code of this file.
Functions | |
struct cbor_decoder_result | cbor_stream_decode (cbor_data source, size_t source_size, const struct cbor_callbacks *callbacks, void *context) |
Stateless decoder. | |
struct cbor_decoder_result cbor_stream_decode | ( | cbor_data | source, |
size_t | source_size, | ||
const struct cbor_callbacks * | callbacks, | ||
void * | context ) |
Stateless decoder.
Will try parsing the source
and will invoke the appropriate callback on success. Decodes one item at a time. No memory allocations occur.
source | Input buffer |
source_size | Length of the buffer |
callbacks | The callback bundle |
context | An arbitrary pointer to allow for maintaining context. |
Definition at line 43 of file streaming.c.