Current API of libdatrie requires all strings to be nul-terminated. Because of this, the trie can't store arbitrary byte sequences e.g. integers.
I see two ways of addressing this limitation:
- Switch from
unit8 to uint16 for TrieChar.
- Implement an API with explicit length parameter.
The original request was submitted to the Python wrapper, see pytries/datrie#31.
Current API of
libdatrierequires all strings to be nul-terminated. Because of this, the trie can't store arbitrary byte sequences e.g. integers.I see two ways of addressing this limitation:
unit8touint16forTrieChar.The original request was submitted to the Python wrapper, see pytries/datrie#31.