toBytes method

Uint8List toBytes([
  1. int offset = 0,
  2. int? length
])

Returns the internal bytesBuffer bytes. See BytesBuffer.toBytes.

Implementation

Uint8List toBytes([int offset = 0, int? length]) {
  checkUnflushedBits();
  return _bytesBuffer.toBytes(offset, length);
}