A blob of 8-bit binary data.
◆ VuoData
Class Members |
char * |
data |
8-bit data. |
VuoInteger |
size |
Number of bytes in data . |
◆ VuoData_SUPPORTS_COMPARISON
#define VuoData_SUPPORTS_COMPARISON |
◆ VuoData_areEqual()
Returns true if the two values are equal.
Definition at line 62 of file VuoData.c.
◆ VuoData_copyToString()
char * VuoData_copyToString |
( |
const VuoData |
data | ) |
|
Returns the string of characters stored in data, plus a trailing NULL.
The string of characters is copied.
Definition at line 140 of file VuoData.c.
◆ VuoData_getJson()
struct json_object * VuoData_getJson |
( |
const VuoData |
value | ) |
|
Encodes value
as a JSON object.
Definition at line 48 of file VuoData.c.
◆ VuoData_getString()
char * VuoData_getString |
( |
const VuoData |
value | ) |
|
Automatically generated function.
◆ VuoData_getSummary()
char * VuoData_getSummary |
( |
const VuoData |
value | ) |
|
Returns a compact string representation of value
.
Definition at line 93 of file VuoData.c.
◆ VuoData_isLessThan()
bool VuoData_isLessThan |
( |
const VuoData |
valueA, |
|
|
const VuoData |
valueB |
|
) |
| |
Returns true if valueA
is less than valueB
.
Definition at line 76 of file VuoData.c.
◆ VuoData_make()
Returns a Binary Data structure with the specified values.
data
becomes owned by the returned VuoData; it will be free
d after the final VuoRelease is called; it should not be modified after calling this function.
Definition at line 108 of file VuoData.c.
◆ VuoData_makeFromJson()
VuoData VuoData_makeFromJson |
( |
json_object * |
js | ) |
|
Decodes the JSON object js
to create a new value.
js
is expected to be a JSON string object containing base64-encoded data.
Definition at line 33 of file VuoData.c.
◆ VuoData_makeFromText()
Returns a Binary Data structure with the specified text data (excluding the text's trailing NULL).
text
is copied.
Definition at line 125 of file VuoData.c.
◆ VuoData_release()
void VuoData_release |
( |
VuoData |
value | ) |
|
◆ VuoData_retain()
void VuoData_retain |
( |
VuoData |
value | ) |
|