toOctalBytes function
Converts 8-bit integer sequence to Base-8 and returns the ASCII bytes.
This is the same as toOctal but returns the encoded characters as a Uint8List of ASCII codes, skipping the intermediate String.
Parameters:
inputis a sequence of 8-bit integers.codecis the Base8Codec to use. Default: Base8Codec.standard.
Implementation
Uint8List toOctalBytes(
List<int> input, {
Base8Codec codec = Base8Codec.standard,
}) {
return codec.encoder.convert(input);
}