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