toByteDataView method

ByteData toByteDataView()

Returns a view of the written bytes as ByteData.

Implementation

ByteData toByteDataView() {
  return ByteData.view(
    _byteData.buffer,
    _byteData.offsetInBytes,
    _length,
  );
}