libcbor 0.12.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
Loading...
Searching...
No Matches
streaming.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014-2020 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 "callbacks.h"
12#include "cbor/cbor_export.h"
13#include "cbor/common.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
30 cbor_data source, size_t source_size,
31 const struct cbor_callbacks* callbacks, void* context);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // LIBCBOR_STREAMING_H
#define _CBOR_NODISCARD
Definition common.h:93
const unsigned char * cbor_data
Definition data.h:20
struct cbor_decoder_result cbor_stream_decode(cbor_data source, size_t source_size, const struct cbor_callbacks *callbacks, void *context)
Stateless decoder.
Definition streaming.c:43
Callback bundle – passed to the decoder.
Definition callbacks.h:51
Streaming decoder result.
Definition data.h:230