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