convertToUint8List method

Uint8List convertToUint8List(
  1. int length
)

Copies this ByteData buffer to an Uint64List of length.

Implementation

Uint8List convertToUint8List(int length) {
  _checkLengthRange(length, 1);
  return Uint8List.fromList(buffer.asUint8List(offsetInBytes, length));
}