| libcbor
    0.5.0
    libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format. | 
#include "cbor/common.h"Go to the source code of this file.
| Functions | |
| size_t | cbor_serialize (const cbor_item_t *item, cbor_mutable_data buffer, size_t buffer_size) | 
| Serialize the given item.  More... | |
| size_t | cbor_serialize_alloc (const cbor_item_t *item, cbor_mutable_data *buffer, size_t *buffer_size) | 
| Serialize the given item, allocating buffers as needed.  More... | |
| size_t | cbor_serialize_uint (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize an uint.  More... | |
| size_t | cbor_serialize_negint (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a negint.  More... | |
| size_t | cbor_serialize_bytestring (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a bytestring.  More... | |
| size_t | cbor_serialize_string (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a string.  More... | |
| size_t | cbor_serialize_array (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize an array.  More... | |
| size_t | cbor_serialize_map (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a map.  More... | |
| size_t | cbor_serialize_tag (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a tag.  More... | |
| size_t | cbor_serialize_float_ctrl (const cbor_item_t *, cbor_mutable_data, size_t) | 
| Serialize a.  More... | |
| size_t cbor_serialize | ( | const cbor_item_t * | item, | 
| cbor_mutable_data | buffer, | ||
| size_t | buffer_size | ||
| ) | 
Serialize the given item.
| item[borrow] | A data item | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 20 of file serialization.c.
| size_t cbor_serialize_alloc | ( | const cbor_item_t * | item, | 
| cbor_mutable_data * | buffer, | ||
| size_t * | buffer_size | ||
| ) | 
Serialize the given item, allocating buffers as needed.
embed:rst:leading-asterisk * .. warning:: It is your responsibility to free the buffer using an appropriate ``free`` implementation. *
| item[borrow] | A data item | 
| buffer[out] | Buffer containing the result | 
| buffer_size[out] | Size of the buffer | 
buffer is NULL. Definition at line 44 of file serialization.c.
| size_t cbor_serialize_array | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize an array.
| item[borrow] | An array | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 178 of file serialization.c.
| size_t cbor_serialize_bytestring | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a bytestring.
| item[borrow] | A bytestring | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 110 of file serialization.c.
| size_t cbor_serialize_float_ctrl | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a.
| item[borrow] | A float or ctrl | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 270 of file serialization.c.
| size_t cbor_serialize_map | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a map.
| item[borrow] | A map | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 214 of file serialization.c.
| size_t cbor_serialize_negint | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a negint.
| item[borrow] | A neging | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 93 of file serialization.c.
| size_t cbor_serialize_string | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a string.
| item[borrow] | A string | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 144 of file serialization.c.
| size_t cbor_serialize_tag | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize a tag.
| item[borrow] | A tag | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 256 of file serialization.c.
| size_t cbor_serialize_uint | ( | const cbor_item_t * | , | 
| cbor_mutable_data | , | ||
| size_t | |||
| ) | 
Serialize an uint.
| item[borrow] | A uint | 
| buffer | Buffer to serialize to | 
| buffer_size | Size of the buffer | 
Definition at line 76 of file serialization.c.
 1.8.12
 1.8.12