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