BlockWriter constructor

BlockWriter({
  1. int targetSize = 64 * 1024,
  2. bool checksum = true,
})

Creates a writer that targets targetSize bytes per block.

Implementation

BlockWriter({int targetSize = 64 * 1024, this.checksum = true})
  : _targetSize = targetSize,
    _buffer = Uint8List(targetSize < 256 ? 256 : targetSize);