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
hex
as normal hex string. - decode_
hex_ prefix - Decodes
hex
as normal hex string prefix. The output may have odd-length byte. Returns(bytes, has_odd_byte)
. - decode_
reverse_ hex - Decodes
reverse_hex
as hex string usingz-k
“digits”. - decode_
reverse_ hex_ prefix - Decodes
reverse_hex
as hex string prefix usingz-k
“digits”. The output may have odd-length byte. Returns(bytes, has_odd_byte)
. - encode_
hex - Encodes
data
as normal hex string. - encode_
reverse_ hex - Encodes
data
as hex string usingz-k
“digits”.