Skip to main content

Module basic_translators

Module basic_translators 

Source

Structsยง

ASCIITranslator
BinaryTranslator
BitTranslator
GroupingBinaryTranslator
HexTranslator
IdenticalMSBsTranslator
LeadingOnesTranslator
LeadingZerosTranslator
LebTranslator
NumberOfOnesTranslator
OctalTranslator
TrailingOnesTranslator
TrailingZerosTranslator

Functionsยง

check_wordlength ๐Ÿ”’
decode_lebxxx ๐Ÿ”’
group_n_chars
Splits a string into groups of n characters. If the string length is not divisible by n, the first group will be shorter. The string must only consist of ASCII characters.
leading_ones ๐Ÿ”’
Counts leading ones in a BigUint value with a given bit width. Returns 0 if the value has leading zeros (i.e., v.bits() < num_bits).
map_to_radix ๐Ÿ”’
Map to radix-based representation, in practice hex or octal