libcbor  0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
streaming.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2017 Pavel Kalvoda <me@pavelkalvoda.com>
3  *
4  * libcbor is free software; you can redistribute it and/or modify
5  * it under the terms of the MIT license. See LICENSE for details.
6  */
7 
8 #ifndef LIBCBOR_STREAMING_H
9 #define LIBCBOR_STREAMING_H
10 
11 #include "cbor/common.h"
12 #include "callbacks.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
29  size_t buffer_size,
30  const struct cbor_callbacks * callbacks,
31  void * context);
32 
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif //LIBCBOR_STREAMING_H
Streaming decoder result.
Definition: data.h:201
const unsigned char * cbor_data
Definition: data.h:20
Callback bundle – passed to the decoder.
Definition: callbacks.h:48
struct cbor_decoder_result cbor_stream_decode(cbor_data buffer, size_t buffer_size, const struct cbor_callbacks *callbacks, void *context)
Stateless decoder.
Definition: streaming.c:26