bytes property

Uint8List bytes

The bytes accumulated so far.

The returned Uint8List is viewing a shared buffer, so it should not be changed and any bytes outside the view should not be accessed.

Implementation

Uint8List get bytes => new Uint8List.view(_buffer.buffer, 0, _buffer.length);