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, _lhUsesZip64) = 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];
920
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
System\IO\Compression\ZipArchiveEntry.cs (56)
625
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
949
_lhUnknownExtraFields =
ZipLocalFileHeader
.GetExtraFields(_archive.ArchiveStream, out _lhTrailingExtraFieldData, out _lhUsesZip64);
1450
if (!IsEncrypted && !
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1461
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1735
_archive.ArchiveStream.Seek(
ZipLocalFileHeader
.SizeOfLocalHeader + _storedEntryNameBytes.Length + extraFieldLength, SeekOrigin.Current);
1770
ZipLocalFileHeader
.SignatureConstantBytes.CopyTo(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Signature..]);
1771
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
1772
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
1776
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressionMethod..], compressionMethodToWrite);
1778
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
1779
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Crc32..], crc32);
1780
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressedSize..], compressedSizeTruncated);
1781
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
1782
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
1783
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.ExtraFieldLength..], extraFieldLength);
1791
Span<byte> lfStaticHeader = stackalloc byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
1971
_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags,
2025
private const int MetadataBufferLength =
ZipLocalFileHeader
.FieldLengths.VersionNeededToExtract +
ZipLocalFileHeader
.FieldLengths.GeneralPurposeBitFlags;
2026
private const int CrcAndSizesBufferLength =
ZipLocalFileHeader
.FieldLengths.Crc32 +
ZipLocalFileHeader
.FieldLengths.CompressedSize +
ZipLocalFileHeader
.FieldLengths.UncompressedSize;
2028
private const int Zip64DataDescriptorCrcAndSizesBufferLength =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.Crc32
2029
+
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.CompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2098
int relativeVersionToExtractLocation =
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2099
int relativeGeneralPurposeBitFlagsLocation =
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
2104
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract,
2112
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.Crc32,
2116
int relativeCrc32Location =
ZipLocalFileHeader
.FieldLocations.Crc32 -
ZipLocalFileHeader
.FieldLocations.Crc32;
2117
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.CompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2118
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
2136
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.SizeOfLocalHeader
2145
int relativeCrc32Location =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32 -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2146
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2147
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
2174
ZipLocalFileHeader
.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Signature..]);
2177
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Crc32..], crcToWrite);
2181
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize);
2182
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize);
2184
bytesToWrite =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
2188
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);
2189
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);
2191
bytesToWrite =
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.ZipDataDescriptor.FieldLengths.UncompressedSize;