Class BinaryDictionary

java.lang.Object
io.datarouter.bytes.BinaryDictionary

public class BinaryDictionary extends Object
Encodes key/value pairs to a flattened byte[]. Keys are sorted via Arrays::compareUnsigned. Duplicate keys are rejected. Size and lengths are encoded with variable lenght ints. Format: [size] (number of entries) [keyLen0][key0][valLen0][val0] [keyLen1][key1][valLen1][val1] [etc]