ReadBuffer constructor Null safety

ReadBuffer(
  1. int size
)

Creates a Buffer of the given size

Implementation

ReadBuffer(int size) : data = Uint8List(size) {
  _byteData = ByteData.view(data.buffer);
}