34 references to ZipHelper
System.IO.Compression (34)
System\IO\Compression\ZipArchive.Async.cs (6)
244if (!await ZipHelper.SeekBackwardsToSignatureAsync(_archiveStream, 283if (eocd.NumberOfThisDisk == ZipHelper.Mask16Bit || 284eocd.OffsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber == ZipHelper.Mask32Bit || 285eocd.NumberOfEntriesInTheCentralDirectory == ZipHelper.Mask16Bit) 300if (await ZipHelper.SeekBackwardsToSignatureAsync(_archiveStream, 408|| _entries.Count >= ZipHelper.Mask16Bit
System\IO\Compression\ZipArchive.cs (7)
214_archiveComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, EntryNameAndCommentEncoding, ZipEndOfCentralDirectoryBlock.ZipFileCommentMaxLength, out _); 620if (!ZipHelper.SeekBackwardsToSignature(_archiveStream, 686if (eocd.NumberOfThisDisk == ZipHelper.Mask16Bit || 687eocd.OffsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber == ZipHelper.Mask32Bit || 688eocd.NumberOfEntriesInTheCentralDirectory == ZipHelper.Mask16Bit) 703if (ZipHelper.SeekBackwardsToSignature(_archiveStream, 859|| _entries.Count >= ZipHelper.Mask16Bit
System\IO\Compression\ZipArchiveEntry.cs (14)
70_lastModified = new DateTimeOffset(ZipHelper.DosTimeToDateTime(cd.LastModified)); 217_fileComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, _archive.EntryNameAndCommentEncoding, ushort.MaxValue, out bool isUTF8); 243_storedEntryNameBytes = ZipHelper.GetEncodedTruncatedBytesFromString( 284if (value.DateTime.Year < ZipHelper.ValidZipDate_YearMin || value.DateTime.Year > ZipHelper.ValidZipDate_YearMax) 499compressedSizeTruncated = ZipHelper.Mask32Bit; 500uncompressedSizeTruncated = ZipHelper.Mask32Bit; 522offsetOfLocalHeaderTruncated = ZipHelper.Mask32Bit; 599BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime)); 1004compressedSizeTruncated = ZipHelper.Mask32Bit; 1005uncompressedSizeTruncated = ZipHelper.Mask32Bit; 1067BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime)); 1222compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_compressedSize; 1223uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize;
System\IO\Compression\ZipBlocks.cs (7)
752bool uncompressedSizeInZip64 = uncompressedSizeSmall == ZipHelper.Mask32Bit; 753bool compressedSizeInZip64 = compressedSizeSmall == ZipHelper.Mask32Bit; 754bool relativeOffsetInZip64 = relativeOffsetOfLocalHeaderSmall == ZipHelper.Mask32Bit; 755bool diskNumberStartInZip64 = diskNumberStartSmall == ZipHelper.Mask16Bit; 875ZipHelper.Mask16Bit : (ushort)numberOfEntries; 877ZipHelper.Mask32Bit : (uint)startOfCentralDirectory; 879ZipHelper.Mask32Bit : (uint)sizeOfCentralDirectory;