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