toOctalBytes function

Uint8List toOctalBytes(
  1. List<int> input, {
  2. Base8Codec codec = Base8Codec.standard,
})

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:

Implementation

Uint8List toOctalBytes(
  List<int> input, {
  Base8Codec codec = Base8Codec.standard,
}) {
  return codec.encoder.convert(input);
}