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