Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kSize kValue_HashCode | ( | kType | type,
|  | const void * | value
| ) |  |

Gets a hash code representing the state of this value.

The default implementation of this method uses type introspection to generate a hash code that combines the hash codes from individual fields. This approach is not efficient, and may not produce an optimal hash code. Value types can override this method if it is likely that hash codes will be required.

Parameters

  type | Value type.
  value | Pointer to value.

Returns
  Hash code.