readBlob method
Implementation
List<int> readBlob(int sz) {
assert(offset + sz <= byteLength);
final blob = ByteData(sz);
blob.buffer.asInt8List(0).setRange(0, sz, buf.buffer.asInt8List(offset));
offset += sz;
return Uint8List.view(blob.buffer);
}