BinaryWriter constructor

BinaryWriter({
  1. int alignment = 1024,
  2. Endian endian = Endian.little,
})

Implementation

BinaryWriter({int alignment = 1024, this.endian = Endian.little})
    : _alignment = max(1, alignment) {
  _buffer = Uint8List(_alignment);
  _byteData = ByteData.view(_buffer.buffer);
}