Vuo  2.3.2
Classes | Macros | Functions

Description

A blob of 8-bit binary data.

Classes

struct  VuoData
 A blob of 8-bit binary data. More...
 

Functions

VuoData VuoData_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value. More...
 
struct json_objectVuoData_getJson (const VuoData value)
 Encodes value as a JSON object. More...
 
char * VuoData_getSummary (const VuoData value)
 Returns a compact string representation of value. More...
 
bool VuoData_areEqual (const VuoData valueA, const VuoData valueB)
 Returns true if the two values are equal. More...
 
bool VuoData_isLessThan (const VuoData valueA, const VuoData valueB)
 Returns true if valueA is less than valueB. More...
 
VuoData VuoData_make (VuoInteger size, unsigned char *data)
 Returns a Binary Data structure with the specified values. More...
 
VuoData VuoData_makeFromText (const VuoText text)
 Returns a Binary Data structure with the specified text data (excluding the text's trailing NULL). More...
 
char * VuoData_copyToString (const VuoData data)
 Returns the string of characters stored in data, plus a trailing NULL. More...
 
VuoData VuoData_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoData_getString (const VuoData value)
 Automatically generated function. More...
 
void VuoData_retain (VuoData value)
 Automatically generated function. More...
 
void VuoData_release (VuoData value)
 Automatically generated function. More...
 

Class Documentation

◆ VuoData

struct VuoData
Class Members
char * data 8-bit data.
VuoInteger size Number of bytes in data.

Function Documentation

◆ VuoData_areEqual()

bool VuoData_areEqual ( const VuoData  valueA,
const VuoData  valueB 
)

Returns true if the two values are equal.

Definition at line 63 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 141 of file VuoData.c.

◆ VuoData_getJson()

struct json_object* VuoData_getJson ( const VuoData  value)

Encodes value as a JSON object.

Definition at line 49 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 94 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 77 of file VuoData.c.

◆ VuoData_make()

VuoData VuoData_make ( VuoInteger  size,
unsigned char *  data 
)

Returns a Binary Data structure with the specified values.

data becomes owned by the returned VuoData; it will be freed after the final VuoRelease is called; it should not be modified after calling this function.

Definition at line 109 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 34 of file VuoData.c.

◆ VuoData_makeFromString()

VuoData VuoData_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoData_makeFromText()

VuoData VuoData_makeFromText ( const VuoText  text)

Returns a Binary Data structure with the specified text data (excluding the text's trailing NULL).

text is copied.

Definition at line 126 of file VuoData.c.

◆ VuoData_release()

void VuoData_release ( VuoData  value)

Automatically generated function.

◆ VuoData_retain()

void VuoData_retain ( VuoData  value)

Automatically generated function.