deimos.cbor.strings

Undocumented in source.

Members

Functions

cbor_build_string
cbor_item_t* cbor_build_string(char* val)

Creates a new string and initializes it

cbor_build_stringn
cbor_item_t* cbor_build_stringn(char* val, size_t length)

Creates a new string and initializes it

cbor_new_definite_string
cbor_item_t* cbor_new_definite_string()

Creates a new definite string

cbor_new_indefinite_string
cbor_item_t* cbor_new_indefinite_string()

Creates a new indefinite string

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

Appends a chunk to the string

cbor_string_chunk_count
size_t cbor_string_chunk_count(cbor_item_t* item)

Get the number of chunks this string consist of

cbor_string_chunks_handle
cbor_item_t** cbor_string_chunks_handle(cbor_item_t* item)

Get the handle to the array of chunks

cbor_string_codepoint_count
size_t cbor_string_codepoint_count(cbor_item_t* item)

The number of codepoints in this string

cbor_string_handle
cbor_mutable_data cbor_string_handle(cbor_item_t* item)

Get the handle to the underlying string

cbor_string_is_definite
bool cbor_string_is_definite(cbor_item_t* item)

Is the string definite?

cbor_string_is_indefinite
bool cbor_string_is_indefinite(cbor_item_t* item)

Is the string indefinite?

cbor_string_length
size_t cbor_string_length(cbor_item_t* item)

Returns the length of the underlying string

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

Set the handle to the underlying string

Meta