AlphabetEncoder constructor
Creates a new AlphabetEncoder instance.
Parameters:
bitsis bit-length of a single word in the output- The
alphabetcontains mapping from input word to output word. - The output array will be padded with the
paddingto make the length of the array to be divisible by source.
Implementation
const AlphabetEncoder({
required super.bits,
required this.alphabet,
this.padding,
});