3DiVi Face SDK
3.24.1
|
Context is an interface object for storing data and interacting with methods from the Processing Block API. More...
Public Member Functions | |
void | Invoke (object ctx) |
Assign context value. More... | |
Context | GetItem (int key) |
Get Context from array by index. More... | |
Context | GetItem (string key) |
Get Context from map by key. More... | |
ulong | Length () |
Get array Context size. More... | |
void | PushBack (Context data) |
Add Context to array. More... | |
unsafe void | SetStr (string value) |
Set Context value. More... | |
unsafe string | GetString () |
Get Context value. More... | |
unsafe void | SetDouble (double value) |
Set Context value. More... | |
unsafe double | GetDouble () |
Get Context value. More... | |
unsafe void | SetBool (bool value) |
Set Context value. More... | |
unsafe void | SetDataPtr (byte[] value) |
Set Context value. More... | |
unsafe byte * | GetDataPtr () |
Get Context value. More... | |
unsafe byte[] | GetBytes (int size) |
get an array of bytes from a container. More... | |
unsafe bool | GetBool () |
Get Context value. More... | |
unsafe void | SetLong (long value) |
Set Context value. More... | |
unsafe long | GetLong () |
Get Context value. More... | |
unsafe ulong | GetUnsignedLong () |
Get Context value. More... | |
unsafe ulong | GetLength () |
Get array Context size. More... | |
unsafe ulong | GetStringSize () |
Get string size. More... | |
unsafe Context | GetOrInsertByKey (string key) |
Returns or insert and returns Context. More... | |
unsafe Context | GetByKey (string key) |
Get Context from map by key. More... | |
unsafe Context | GetByIndex (int index) |
Get Context from array by index. More... | |
unsafe Context | Clone () |
Copy Context. More... | |
unsafe Context | Copy (Context other) |
Copy data from other Context to this. More... | |
unsafe void | Clear () |
clears the contents of the container-Context. | |
unsafe void | Erase (string key) |
deletes the contents of the container-Context stored by key. More... | |
unsafe void | Reserve (long size) |
allocates memory for num elements in the array. More... | |
unsafe bool | Contains (string key) |
checks the existence of an element by a specific key More... | |
unsafe bool | Compare (Context dst) |
compares two Context objects More... | |
unsafe void | SaveToJsonFile (string path) |
saves the contents of the container to a json file More... | |
unsafe void | DictionaryParser (Dictionary< object, object > ctx) |
Add all values of Dictionary to Context map. More... | |
unsafe void | ListParser (List< object > ctx) |
Add all values of List to Context array. More... | |
unsafe void | StringParser (string ctx) |
Set Context value. More... | |
unsafe void | LongParser (long ctx) |
Set Context value. More... | |
unsafe void | DoubleParser (double ctx) |
Set Context value. More... | |
unsafe void | BoolParser (bool ctx) |
Set Context value. More... | |
unsafe void | ByteParser (byte[] ctx) |
Set Context value. More... | |
unsafe List< string > | GetKeys () |
Get all Context map keys. More... | |
List< string > | Keys () |
Get all Context map keys. More... | |
unsafe bool | IsNone () |
Check Context value is None. More... | |
unsafe bool | IsArray () |
Check Context value is array. More... | |
unsafe bool | IsObject () |
Check Context value is object. More... | |
unsafe bool | IsBool () |
Check Context value is bool. More... | |
unsafe bool | IsLong () |
Check Context value is long. More... | |
unsafe bool | IsUnsignedLong () |
Check Context value is unsigned long. More... | |
unsafe bool | IsDouble () |
Check Context value is double. More... | |
unsafe bool | IsString () |
Check Context value is string. More... | |
unsafe bool | IsDataPtr () |
Check Context value is pointer to bytes. More... | |
unsafe object | GetValue () |
Get current Context value. More... | |
Properties | |
Context | this[int index] [get] |
Get Context from array by index. More... | |
Context | this[string key] [get, set] |
Get Context from map by key. More... | |
Context is an interface object for storing data and interacting with methods from the Processing Block API.
|
inline |
|
inline |
Set Context value.
ctx | Array of bytes |
|
inline |
compares two Context objects
[in] | dst | - container-Context |
|
inline |
checks the existence of an element by a specific key
[in] | key |
|
inline |
|
inline |
|
inline |
deletes the contents of the container-Context stored by key.
[in] | str. |
|
inline |
Get Context value.
|
inline |
|
inline |
|
inline |
get an array of bytes from a container.
[in] | size | the size of the byte array. |
|
inline |
Get Context value.
|
inline |
Get Context value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get Context value.
|
inline |
|
inline |
Get Context value.
|
inline |
Get string size.
|
inline |
Get Context value.
|
inline |
|
inline |
Assign context value.
ctx | New context value |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
allocates memory for num elements in the array.
[in] | size | - the size of the array. |
|
inline |
saves the contents of the container to a json file
[in] | path | - the path to the file |
|
inline |
Set Context value.
value | Bool value |
|
inline |
Set Context value.
value | Array of bytes |
|
inline |
Set Context value.
value | Double value |
|
inline |
Set Context value.
value | Long value |
|
inline |
Set Context value.
value | String value |
|
inline |
|
get |