ICSharpCode.SharpZipLib.Zip.ZipInputStream.ReadDataDescriptor C# (CSharp) Method

ReadDataDescriptor() private method

Read data descriptor at the end of compressed data.
private ReadDataDescriptor ( ) : void
return void
        void ReadDataDescriptor()
        {
            if (inputBuffer.ReadLeInt() != ZipConstants.DataDescriptorSignature) {
                throw new ZipException("Data descriptor signature not found");
            }

            entry.Crc = inputBuffer.ReadLeInt() & 0xFFFFFFFFL;

            if (entry.LocalHeaderRequiresZip64) {
                csize = inputBuffer.ReadLeLong();
                size = inputBuffer.ReadLeLong();
            } else {
                csize = inputBuffer.ReadLeInt();
                size = inputBuffer.ReadLeInt();
            }
            entry.CompressedSize = csize;
            entry.Size = size;
        }