deimos.cbor.common

Undocumented in source.

Members

Aliases

TO_STR
alias TO_STR = TO_STR_
Undocumented in source.

Functions

TO_STR_
string TO_STR_(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
cbor_decref
void cbor_decref(cbor_item_t** item)

Decreases the reference count by one, deallocating the item if needed

cbor_incref
cbor_item_t* cbor_incref(cbor_item_t* item)

Increases the reference count by one

cbor_intermediate_decref
void cbor_intermediate_decref(cbor_item_t* item)

Decreases the reference count by one, deallocating the item if needed

cbor_is_bool
bool cbor_is_bool(cbor_item_t* item)

Is the item an a boolean? @param itemborrow the item @return Is the item a boolean?

cbor_is_float
bool cbor_is_float(cbor_item_t* item)

Is the item an a floating point number? @param itemborrow the item @return Is the item a floating point number?

cbor_is_int
bool cbor_is_int(cbor_item_t* item)

Is the item an integer, either positive or negative? @param itemborrow the item @return Is the item an integer, either positive or negative?

cbor_is_null
bool cbor_is_null(cbor_item_t* item)

Does this item represent null \rst .. warning:: This is in no way related to the value of the pointer. Passing a null pointer will most likely result in a crash. \endrst @param itemborrow the item @return Is the item (CBOR logical) null?

cbor_is_undef
bool cbor_is_undef(cbor_item_t* item)

Does this item represent undefined \rst .. warning:: Care must be taken to distinguish nulls and undefined values in C. \endrst @param itemborrow the item @return Is the item (CBOR logical) undefined?

cbor_isa_array
bool cbor_isa_array(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item an #CBOR_TYPE_ARRAY?

cbor_isa_bytestring
bool cbor_isa_bytestring(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_BYTESTRING?

cbor_isa_float_ctrl
bool cbor_isa_float_ctrl(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_FLOAT_CTRL?

cbor_isa_map
bool cbor_isa_map(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_MAP?

cbor_isa_negint
bool cbor_isa_negint(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_NEGINT?

cbor_isa_string
bool cbor_isa_string(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_STRING?

cbor_isa_tag
bool cbor_isa_tag(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item a #CBOR_TYPE_TAG?

cbor_isa_uint
bool cbor_isa_uint(cbor_item_t* item)

Does the item have the appropriate major type? @param itemborrow the item @return Is the item an #CBOR_TYPE_UINT?

cbor_move
cbor_item_t* cbor_move(cbor_item_t* item)

Provides CPP-like move construct

cbor_refcount
size_t cbor_refcount(cbor_item_t* item)

Get the reference count

cbor_typeof
cbor_type cbor_typeof(cbor_item_t* item)

Get the type of the item

Manifest constants

CBOR_HEX_VERSION
enum CBOR_HEX_VERSION;
Undocumented in source.
CBOR_VERSION
enum CBOR_VERSION;
Undocumented in source.
_CBOR_FREE
enum _CBOR_FREE;
Undocumented in source.
_CBOR_MALLOC
enum _CBOR_MALLOC;

Sets the memory management routines to use.

_CBOR_REALLOC
enum _CBOR_REALLOC;
Undocumented in source.

Static variables

cbor_major_version
ubyte cbor_major_version;
Undocumented in source.
cbor_minor_version
ubyte cbor_minor_version;
Undocumented in source.
cbor_patch_version
ubyte cbor_patch_version;
Undocumented in source.

Meta