deimos.cbor.floats_ctrls

Undocumented in source.

Members

Functions

cbor_build_bool
cbor_item_t* cbor_build_bool(bool value)

Constructs new boolean ctrl item

cbor_build_ctrl
cbor_item_t* cbor_build_ctrl(ubyte value)

Constructs a ctrl item

cbor_build_float2
cbor_item_t* cbor_build_float2(float value)

Constructs a new float

cbor_build_float4
cbor_item_t* cbor_build_float4(float value)

Constructs a new float

cbor_build_float8
cbor_item_t* cbor_build_float8(double value)

Constructs a new float

cbor_ctrl_is_bool
bool cbor_ctrl_is_bool(cbor_item_t* item)

Is this ctrl item a boolean?

cbor_ctrl_value
ubyte cbor_ctrl_value(cbor_item_t* item)

Reads the control value

cbor_float_ctrl_is_ctrl
bool cbor_float_ctrl_is_ctrl(cbor_item_t* item)

Is this a ctrl value?

cbor_float_get_float
double cbor_float_get_float(cbor_item_t* item)

Get the float value represented as double

cbor_float_get_float2
float cbor_float_get_float2(cbor_item_t* item)

Get a half precision float

cbor_float_get_float4
float cbor_float_get_float4(cbor_item_t* item)

Get a single precision float

cbor_float_get_float8
double cbor_float_get_float8(cbor_item_t* item)

Get a double precision float

cbor_float_get_width
cbor_float_width cbor_float_get_width(cbor_item_t* item)

Get the float width

cbor_new_ctrl
cbor_item_t* cbor_new_ctrl()

Constructs a new ctrl item

cbor_new_float2
cbor_item_t* cbor_new_float2()

Constructs a new float item

cbor_new_float4
cbor_item_t* cbor_new_float4()

Constructs a new float item

cbor_new_float8
cbor_item_t* cbor_new_float8()

Constructs a new float item

cbor_new_null
cbor_item_t* cbor_new_null()

Constructs new null ctrl item

cbor_new_undef
cbor_item_t* cbor_new_undef()

Constructs new undef ctrl item

cbor_set_ctrl
void cbor_set_ctrl(cbor_item_t* item, ubyte value)

Assign a control value

cbor_set_float2
void cbor_set_float2(cbor_item_t* item, float value)

Assigns a float value

cbor_set_float4
void cbor_set_float4(cbor_item_t* item, float value)

Assigns a float value

cbor_set_float8
void cbor_set_float8(cbor_item_t* item, double value)

Assigns a float value

Meta