Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

void kValue_VImport | ( | kType | type,
|  | void * | value,
|  | const void * | source
| ) |  |
| protected

Protected virtual method that imports data from an external source into an array-value type.

The default implementation of this method copies a number of bytes equal to the size of the specified data type. However, this is not always convenient when working with array-value types. For example, by overriding the kValue_VImport method, array-value types such as kText32 can support importing null-terminated character arrays of unknown length.

Parameters

  type | Value type.
  value | Value instance pointer.
  source | Pointer to source data.

Returns
  Hash code.