Module nullenc

Module nullenc 

Source

Constantsยง

NULL_ENCODE_EQ_BYTE ๐Ÿ”’
NULL_ENCODE_EQ_BYTE_ESC ๐Ÿ”’
NULL_ENCODE_ESC_BYTE ๐Ÿ”’
NULL_ENCODE_ESC_BYTE_ESC ๐Ÿ”’
NULL_ENCODE_SEP_BYTE ๐Ÿ”’
NULL_ENCODE_SEP_BYTE_ESC ๐Ÿ”’
NULL_ENCODE_ZERO_BYTE_ESC ๐Ÿ”’

Functionsยง

decode_string_array
Decode a null-encoded byte slice into a string array.
decode_string_map
Decode a null-encoded byte slice into a map of strings.
encode_string_array
Encode a string array using null encoding. Format: elem1|elem2|elem3
encode_string_map
Encode a map of strings using null encoding, sorted by key. Format: key1=val1|key2=val2
encoded_string_array_get_first_val
Get the first value from an encoded string array without decoding the whole array.
encoded_string_array_has_first_val
Check if an encoded string array has the given first value.
null_decode_str
Decode a null-encoded byte slice back to a string.
null_encode_str
Encode a string, escaping null bytes, backslashes, separators (|), and equals (=).
split_bytes ๐Ÿ”’
splitn_bytes ๐Ÿ”’