58 references to ZipLocalFileHeader
System.IO.Compression (58)
System\IO\Compression\ZipArchiveEntry.Async.cs (4)
48
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
157
(_lhUnknownExtraFields, _lhTrailingExtraFieldData) = await
ZipLocalFileHeader
.GetExtraFieldsAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
244
if (!await
ZipLocalFileHeader
.TrySkipBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false))
267
byte[] lfStaticHeader = new byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
System\IO\Compression\ZipArchiveEntry.cs (54)
400
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
647
_lhUnknownExtraFields =
ZipLocalFileHeader
.GetExtraFields(_archive.ArchiveStream, out _lhTrailingExtraFieldData);
836
if (!
ZipLocalFileHeader
.TrySkipBlock(_archive.ArchiveStream))
1046
_archive.ArchiveStream.Seek(
ZipLocalFileHeader
.SizeOfLocalHeader + _storedEntryNameBytes.Length, SeekOrigin.Current);
1063
ZipLocalFileHeader
.SignatureConstantBytes.CopyTo(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Signature..]);
1064
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
1065
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
1066
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressionMethod..], (ushort)CompressionMethod);
1067
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
1068
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.Crc32..], _crc32);
1069
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.CompressedSize..], compressedSizeTruncated);
1070
BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
1071
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
1072
BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[
ZipLocalFileHeader
.FieldLocations.ExtraFieldLength..], extraFieldLength);
1080
Span<byte> lfStaticHeader = stackalloc byte[
ZipLocalFileHeader
.SizeOfLocalHeader];
1155
private const int MetadataBufferLength =
ZipLocalFileHeader
.FieldLengths.VersionNeededToExtract +
ZipLocalFileHeader
.FieldLengths.GeneralPurposeBitFlags;
1156
private const int CrcAndSizesBufferLength =
ZipLocalFileHeader
.FieldLengths.Crc32 +
ZipLocalFileHeader
.FieldLengths.CompressedSize +
ZipLocalFileHeader
.FieldLengths.UncompressedSize;
1158
private const int Zip64DataDescriptorCrcAndSizesBufferLength =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.Crc32
1159
+
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.CompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
1228
int relativeVersionToExtractLocation =
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
1229
int relativeGeneralPurposeBitFlagsLocation =
ZipLocalFileHeader
.FieldLocations.GeneralPurposeBitFlags -
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract;
1234
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.VersionNeededToExtract,
1242
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.FieldLocations.Crc32,
1246
int relativeCrc32Location =
ZipLocalFileHeader
.FieldLocations.Crc32 -
ZipLocalFileHeader
.FieldLocations.Crc32;
1247
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.CompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
1248
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.FieldLocations.Crc32;
1265
_archive.ArchiveStream.Seek(_offsetOfLocalHeader +
ZipLocalFileHeader
.SizeOfLocalHeader
1274
int relativeCrc32Location =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32 -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
1275
int relativeCompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
1276
int relativeUncompressedSizeLocation =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize -
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.Crc32;
1302
ZipLocalFileHeader
.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Signature..]);
1303
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.Crc32..], _crc32);
1307
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize);
1308
BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize);
1310
bytesToWrite =
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.Zip64DataDescriptor.FieldLengths.UncompressedSize;
1314
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);
1315
BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);
1317
bytesToWrite =
ZipLocalFileHeader
.ZipDataDescriptor.FieldLocations.UncompressedSize +
ZipLocalFileHeader
.ZipDataDescriptor.FieldLengths.UncompressedSize;