WYRDTEK Home Features Reference Downloads About


Reference/es_sdc

struct es_sdc is an opaque data structure representing a compressed string dictionary.

A compressed string dictionary is a compressed, read-only snapshot of an existing string dictionary. It takes-up less memory and is significantly faster at looking up strings, but has the downside that any attempt to lookup a string which does not already exist in the dictionary has undefined behaviour.

The object interface is as follows:
es_sdc_new Construct a new compressed string dictionary from an existing string dictionary.
es_sdc_delete Destroy a compressed string dictionary.
es_sdc_getid Retrieve string-id from compressed dictionary by null terminated string.
es_sdc_getid_v Retrieve string-id from compressed dictionary by a string of known length.
es_sdc_getmaxid Retrieve the maximum string-id in compressed dictionary.

[Back To Reference]