private void SetZip64Flags()
{
// zip64 housekeeping
_entryRequiresZip64 = new Nullable<bool>
(_CompressedSize >= 0xFFFFFFFF || _UncompressedSize >= 0xFFFFFFFF || _RelativeOffsetOfLocalHeader >= 0xFFFFFFFF);
// validate the ZIP64 usage
if (_container.Zip64 == Zip64Option.Never && _entryRequiresZip64.Value)
throw new ZipException("Compressed or Uncompressed size, or offset exceeds the maximum value. Consider setting the UseZip64WhenSaving property on the ZipFile instance.");
_OutputUsesZip64 = new Nullable<bool>(_container.Zip64 == Zip64Option.Always || _entryRequiresZip64.Value);
}