62 references to ZipLocalFileHeader
System.IO.Compression (62)
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
163
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
466
(_lhUnknownExtraFields, _lhTrailingExtraFieldData) = await
ZipLocalFileHeader
.GetExtraFieldsAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
660
if (!IsEncrypted && !await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
671
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
695
byte[] lfStaticHeader = new byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
919
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
System\IO\Compression\ZipArchiveEntry.cs (56)
610
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
935
_lhUnknownExtraFields =
ZipLocalFileHeader
.GetExtraFields(_archive.ArchiveStream, out _lhTrailingExtraFieldData);
1427
if (!IsEncrypted && !
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1438
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1693
_archive.ArchiveStream.Seek(
ZipLocalFileHeader
.SizeOfLocalHeader + _storedEntryNameBytes.Length + extraFieldLength, SeekOrigin.Current);
1728
ZipLocalFileHeader
.SignatureConstantBytes.CopyTo(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Signature..]);
1729
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
1730
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
1734
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressionMethod..], compressionMethodToWrite);
1736
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
1737
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Crc32..], crc32);
1738
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressedSize..], compressedSizeTruncated);
1739
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
1740
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
1741
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.ExtraFieldLength..], extraFieldLength);
1749
Span<byte> lfStaticHeader = stackalloc byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
1928
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
1982
private const int MetadataBufferLength =
ZipLocalFileHeader
.FieldLengths.VersionNeededToExtract +
ZipLocalFileHeader
.FieldLengths.GeneralPurposeBitFlags;
1983
private const int CrcAndSizesBufferLength =
ZipLocalFileHeader
.FieldLengths.Crc32 +
ZipLocalFileHeader
.FieldLengths.CompressedSize +
ZipLocalFileHeader
.FieldLengths.UncompressedSize;
1985
private const int Zip64DataDescriptorCrcAndSizesBufferLength =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.Crc32
1986
+
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.CompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2055
int relativeVersionToExtractLocation =
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2056
int relativeGeneralPurposeBitFlagsLocation =
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2061
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract,
2069
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.Crc32,
2073
int relativeCrc32Location =
ZipLocalFileHeader
.FieldLocations.Crc32 -
ZipLocalFileHeader
.FieldLocations.Crc32;
2074
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.CompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2075
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2093
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.SizeOfLocalHeader
2102
int relativeCrc32Location =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32 -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2103
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2104
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2131
ZipLocalFileHeader
.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Signature..]);
2134
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Crc32..], crcToWrite);
2138
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize);
2139
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize);
2141
bytesToWrite =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2145
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);
2146
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);
2148
bytesToWrite =
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.ZipDataDescriptor.FieldLengths.UncompressedSize;