30 references to ZipHelper
System.IO.Compression (30)
System\IO\Compression\ZipArchive.cs (7)
224set => _archiveComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, EntryNameAndCommentEncoding, ZipEndOfCentralDirectoryBlock.ZipFileCommentMaxLength, out _); 528if (!ZipHelper.SeekBackwardsToSignature(_archiveStream, 578if (eocd.NumberOfThisDisk == ZipHelper.Mask16Bit || 579eocd.OffsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber == ZipHelper.Mask32Bit || 580eocd.NumberOfEntriesInTheCentralDirectory == ZipHelper.Mask16Bit) 589if (ZipHelper.SeekBackwardsToSignature(_archiveStream, 675|| _entries.Count >= ZipHelper.Mask16Bit
System\IO\Compression\ZipArchiveEntry.cs (16)
63_lastModified = new DateTimeOffset(ZipHelper.DosTimeToDateTime(cd.LastModified)); 206_fileComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, _archive.EntryNameAndCommentEncoding, ushort.MaxValue, out bool isUTF8); 231_storedEntryNameBytes = ZipHelper.GetEncodedTruncatedBytesFromString( 272if (value.DateTime.Year < ZipHelper.ValidZipDate_YearMin || value.DateTime.Year > ZipHelper.ValidZipDate_YearMax) 491compressedSizeTruncated = ZipHelper.Mask32Bit; 492uncompressedSizeTruncated = ZipHelper.Mask32Bit; 512offsetOfLocalHeaderTruncated = ZipHelper.Mask32Bit; 545writer.Write(ZipHelper.DateTimeToDosTime(_lastModified.DateTime)); // File last modification time and date (4 bytes) 604ZipHelper.ReadBytes(_archive.ArchiveStream, _compressedBytes[i], MaxSingleBufferSize); 606ZipHelper.ReadBytes(_archive.ArchiveStream, _compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % MaxSingleBufferSize)); 909compressedSizeTruncated = ZipHelper.Mask32Bit; 910uncompressedSizeTruncated = ZipHelper.Mask32Bit; 946writer.Write(ZipHelper.DateTimeToDosTime(_lastModified.DateTime)); // uint 1031uint compressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_compressedSize; 1032uint uncompressedSizeTruncated = zip64Needed ? ZipHelper.Mask32Bit : (uint)_uncompressedSize;
System\IO\Compression\ZipBlocks.cs (7)
510bool uncompressedSizeInZip64 = uncompressedSizeSmall == ZipHelper.Mask32Bit; 511bool compressedSizeInZip64 = compressedSizeSmall == ZipHelper.Mask32Bit; 512bool relativeOffsetInZip64 = relativeOffsetOfLocalHeaderSmall == ZipHelper.Mask32Bit; 513bool diskNumberStartInZip64 = diskNumberStartSmall == ZipHelper.Mask16Bit; 586ZipHelper.Mask16Bit : (ushort)numberOfEntries; 588ZipHelper.Mask32Bit : (uint)startOfCentralDirectory; 590ZipHelper.Mask32Bit : (uint)sizeOfCentralDirectory;