toBytes method

Uint8List toBytes()

Underlying buffer trimmed to the bytes actually written.

Implementation

Uint8List toBytes() {
  return Uint8List.sublistView(_dataView, 0, _bytePosition);
}