deimos.cbor.bytestrings

Undocumented in source.

Members

Functions

cbor_build_bytestring
cbor_item_t* cbor_build_bytestring(cbor_data handle, size_t length)

Creates a new byte string and initializes it

cbor_bytestring_add_chunk
bool cbor_bytestring_add_chunk(cbor_item_t* item, cbor_item_t* chunk)

Appends a chunk to the bytestring

cbor_bytestring_chunk_count
size_t cbor_bytestring_chunk_count(cbor_item_t* item)

Get the number of chunks this string consist of

cbor_bytestring_chunks_handle
cbor_item_t** cbor_bytestring_chunks_handle(cbor_item_t* item)

Get the handle to the array of chunks

cbor_bytestring_handle
cbor_mutable_data cbor_bytestring_handle(cbor_item_t* item)

Get the handle to the binary data

cbor_bytestring_is_definite
bool cbor_bytestring_is_definite(cbor_item_t* item)

Is the byte string definite?

cbor_bytestring_is_indefinite
bool cbor_bytestring_is_indefinite(cbor_item_t* item)

Is the byte string indefinite?

cbor_bytestring_length
size_t cbor_bytestring_length(cbor_item_t* item)

Returns the length of the binary data

cbor_bytestring_set_handle
void cbor_bytestring_set_handle(cbor_item_t* item, cbor_mutable_data data, size_t length)

Set the handle to the binary data

cbor_new_definite_bytestring
cbor_item_t* cbor_new_definite_bytestring()

Creates a new definite byte string

cbor_new_indefinite_bytestring
cbor_item_t* cbor_new_indefinite_bytestring()

Creates a new indefinite byte string

Meta