8#ifndef LIBCBOR_BYTESTRINGS_H
9#define LIBCBOR_BYTESTRINGS_H
11#include "cbor/cbor_export.h"
cbor_mutable_data cbor_bytestring_handle(const cbor_item_t *item)
Get the handle to the binary data.
bool cbor_bytestring_is_definite(const cbor_item_t *item)
Is the byte string definite?
bool cbor_bytestring_is_indefinite(const cbor_item_t *item)
Is the byte string indefinite?
cbor_item_t * cbor_new_definite_bytestring(void)
Creates a new definite byte string.
bool cbor_bytestring_add_chunk(cbor_item_t *item, cbor_item_t *chunk)
Appends a chunk to the bytestring.
size_t cbor_bytestring_length(const cbor_item_t *item)
Returns the length of the binary data.
cbor_item_t ** cbor_bytestring_chunks_handle(const cbor_item_t *item)
Get the handle to the array of chunks.
cbor_item_t * cbor_new_indefinite_bytestring(void)
Creates a new indefinite byte string.
cbor_item_t * cbor_build_bytestring(cbor_data handle, size_t length)
Creates a new byte string and initializes it.
size_t cbor_bytestring_chunk_count(const cbor_item_t *item)
Get the number of chunks this string consist of.
void cbor_bytestring_set_handle(cbor_item_t *item, cbor_mutable_data data, size_t length)
Set the handle to the binary data.
#define CBOR_RESTRICT_POINTER
const unsigned char * cbor_data
unsigned char * cbor_mutable_data