ZipWriter.writeEndOfCentralDirectory

private void writeEndOfCentralDirectory(ulong cdOffset, ulong cdSize, bool zip64)

Write the regular End of Central Directory record.

When zip64 is true, entry counts and offsets are written with sentinel values (0xFFFF / 0xFFFFFFFF) pointing readers to the ZIP64 structures.

Parameters

cdOffsetByte offset of the central directory.
cdSizeTotal size of the central directory in bytes.
zip64Whether ZIP64 EOCD was also written.