toBytes method

Uint8List toBytes()

Get underlying buffer taking only value bytes (in case initial buffer size was bigger).

Implementation

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