62 references to ZipLocalFileHeader
System.IO.Compression (62)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
158
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
436
(_lhUnknownExtraFields, _lhTrailingExtraFieldData) = await
ZipLocalFileHeader
.GetExtraFieldsAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
630
if (!IsEncrypted && !await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
641
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
665
byte[] lfStaticHeader = new byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
889
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
System\IO\Compression\ZipArchiveEntry.cs (56)
605
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
921
_lhUnknownExtraFields =
ZipLocalFileHeader
.GetExtraFields(_archive.ArchiveStream, out _lhTrailingExtraFieldData);
1399
if (!IsEncrypted && !
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1410
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1665
_archive.ArchiveStream.Seek(
ZipLocalFileHeader
.SizeOfLocalHeader + _storedEntryNameBytes.Length + extraFieldLength, SeekOrigin.Current);
1700
ZipLocalFileHeader
.SignatureConstantBytes.CopyTo(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Signature..]);
1701
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
1702
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
1706
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressionMethod..], compressionMethodToWrite);
1708
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
1709
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Crc32..], crc32);
1710
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressedSize..], compressedSizeTruncated);
1711
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
1712
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
1713
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.ExtraFieldLength..], extraFieldLength);
1721
Span<byte> lfStaticHeader = stackalloc byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
1900
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
1954
private const int MetadataBufferLength =
ZipLocalFileHeader
.FieldLengths.VersionNeededToExtract +
ZipLocalFileHeader
.FieldLengths.GeneralPurposeBitFlags;
1955
private const int CrcAndSizesBufferLength =
ZipLocalFileHeader
.FieldLengths.Crc32 +
ZipLocalFileHeader
.FieldLengths.CompressedSize +
ZipLocalFileHeader
.FieldLengths.UncompressedSize;
1957
private const int Zip64DataDescriptorCrcAndSizesBufferLength =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.Crc32
1958
+
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.CompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2027
int relativeVersionToExtractLocation =
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2028
int relativeGeneralPurposeBitFlagsLocation =
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2033
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract,
2041
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.Crc32,
2045
int relativeCrc32Location =
ZipLocalFileHeader
.FieldLocations.Crc32 -
ZipLocalFileHeader
.FieldLocations.Crc32;
2046
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.CompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2047
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2065
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.SizeOfLocalHeader
2074
int relativeCrc32Location =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32 -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2075
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2076
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2103
ZipLocalFileHeader
.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Signature..]);
2106
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Crc32..], crcToWrite);
2110
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize);
2111
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize);
2113
bytesToWrite =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2117
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);
2118
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);
2120
bytesToWrite =
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.ZipDataDescriptor.FieldLengths.UncompressedSize;