Returns a view of the written bytes as ByteData.
ByteData toByteDataView() { return ByteData.view( _byteData.buffer, _byteData.offsetInBytes, _length, ); }