Opaque handle to a hash table. More...
#include <ktx.h>
Public Member Functions | |
| KTX_hash_table | ktxHashTable_Create (void) |
| KTX_error_code | ktxHashTable_Serialize (KTX_hash_table This, unsigned int *kvdLen, unsigned char **kvd) |
| Serializes the hash table to a block of memory suitable for writing to a KTX file. More... | |
| KTX_error_code | ktxHashTable_Deserialize (unsigned int kvdLen, void *pKvd, KTX_hash_table *pHt) |
| Create a new hash table from a block of serialized key-value data read from a file. More... | |
Opaque handle to a hash table.
| KTX_hash_table ktxHashTable_Create | ( | void | ) |
| KTX_error_code ktxHashTable_Deserialize | ( | unsigned int | kvdLen, |
| void * | pKvd, | ||
| KTX_hash_table * | pHt | ||
| ) |
Create a new hash table from a block of serialized key-value data read from a file.
The caller is responsible for freeing the returned hash table.
| [in] | kvdLen | the length of the serialized key-value data. |
| [in] | pKvd | pointer to the serialized key-value data. |
| [in,out] | pHt | *pHt is set to point to the created hash table. |
| KTX_INVALID_VALUE | if pKvd or pHt is NULL or kvdLen == 0. |
| KTX_OUT_OF_MEMORY | there was not enough memory to create the hash table. |
| KTX_error_code ktxHashTable_Serialize | ( | KTX_hash_table | This, |
| unsigned int * | kvdLen, | ||
| unsigned char ** | kvd | ||
| ) |
Serializes the hash table to a block of memory suitable for writing to a KTX file.