27 references to FieldLengths
System.IO.Compression (27)
System\IO\Compression\ZipArchiveEntry.cs (5)
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;
System\IO\Compression\ZipBlocks.Async.cs (3)
117
byte[] fixedHeaderBuffer = new byte[
FieldLengths
.FilenameLength +
FieldLengths
.ExtraFieldLength];
149
byte[] blockBytes = new byte[
FieldLengths
.Signature];
System\IO\Compression\ZipBlocks.cs (9)
590
Span<byte> fixedHeaderBuffer = stackalloc byte[
FieldLengths
.FilenameLength +
FieldLengths
.ExtraFieldLength];
618
if (bytesRead !=
FieldLengths
.Signature || !blockBytes.SequenceEqual(SignatureConstantBytes))
629
stream.Seek(FieldLocations.FilenameLength -
FieldLengths
.Signature, SeekOrigin.Current);
633
Debug.Assert(blockBytes.Length ==
FieldLengths
.FilenameLength +
FieldLengths
.ExtraFieldLength);
640
if (bytesRead !=
FieldLengths
.FilenameLength +
FieldLengths
.ExtraFieldLength)
663
Span<byte> blockBytes = stackalloc byte[
FieldLengths
.Signature];
System\IO\Compression\ZipBlocks.FieldLocations.cs (10)
62
public const int VersionNeededToExtract = Signature +
FieldLengths
.Signature;
63
public const int GeneralPurposeBitFlags = VersionNeededToExtract +
FieldLengths
.VersionNeededToExtract;
64
public const int CompressionMethod = GeneralPurposeBitFlags +
FieldLengths
.GeneralPurposeBitFlags;
65
public const int LastModified = CompressionMethod +
FieldLengths
.CompressionMethod;
66
public const int Crc32 = LastModified +
FieldLengths
.LastModified;
67
public const int CompressedSize = Crc32 +
FieldLengths
.Crc32;
68
public const int UncompressedSize = CompressedSize +
FieldLengths
.CompressedSize;
69
public const int FilenameLength = UncompressedSize +
FieldLengths
.UncompressedSize;
70
public const int ExtraFieldLength = FilenameLength +
FieldLengths
.FilenameLength;
71
public const int DynamicData = ExtraFieldLength +
FieldLengths
.ExtraFieldLength;