allocate method

void allocate()
inherited

Allocate a new ByteData with 1Megabyte of data.

Implementation

void allocate() {
  // 1048576 Uint8 = 1048576 Bytes = 1MB
  writeByteData = ByteData(megaByte);
}