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 ๐