fromOctal function

Uint8List fromOctal(
  1. String input, {
  2. Base8Codec codec = Base8Codec.standard,
})

Converts 3-bit Base-8 character sequence to 8-bit integer sequence.

Parameters:

Throws:

If a partial string is detected, the following bits are assumed to be zeros.

NOTE:, This implementation is a bit-wise decoding of the input bytes. To get the bytes from the numeric representation of the input:

fromBigInt(BigInt.parse(input, radix: 8));

Implementation

Uint8List fromOctal(
  String input, {
  Base8Codec codec = Base8Codec.standard,
}) {
  return codec.decoder.convert(input.codeUnits);
}