void writeInt64(int i, [Endian endian = Endian.big]) { _ensureSize(8); _scratchData?.setInt64(_scratchOffset, i, endian); _scratchOffset += 8; }