Expand description
Hex string helpers.
Functions§
- common_
hex_ len - Calculates common prefix length of two byte sequences. The length to be returned is a number of hexadecimal digits.
- decode_
hex - Decodes
hexas normal hex string. - decode_
hex_ prefix - Decodes
hexas normal hex string prefix. The output may have odd-length byte. Returns(bytes, has_odd_byte). - decode_
reverse_ hex - Decodes
reverse_hexas hex string usingz-k“digits”. - decode_
reverse_ hex_ prefix - Decodes
reverse_hexas hex string prefix usingz-k“digits”. The output may have odd-length byte. Returns(bytes, has_odd_byte). - encode_
hex - Encodes
dataas normal hex string. - encode_
reverse_ hex - Encodes
dataas hex string usingz-k“digits”.