pyktx.ktx_hash_list module

class pyktx.ktx_hash_list.KtxHashList(ptr)[source]

Bases: object

Opaque handle to a ktxHashList implemented in C.

add_kv_pair(key: str, value: bytes) → None[source]

Add a key value pair to a hash list.

delete_kv_pair(key: str) → None[source]

Delete a key value pair in a hash list.

find_value(key: str) → create_string_buffer | None[source]

Looks up a key in a hash list and returns the value.

copy() → Dict[str, bytes][source]

Copy the hash list into a dict. This is recommended if you reading the hash list.