Home / Function/ readGZIPFooter() — netty Function Reference

readGZIPFooter() — netty Function Reference

Architecture documentation for the readGZIPFooter() function in JdkZlibDecoder.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  d0cd03db_9b26_0705_c3cd_3780ad92c927["readGZIPFooter()"]
  bba68af7_04c2_8ee6_82f0_73e08fa3f9cd["JdkZlibDecoder"]
  d0cd03db_9b26_0705_c3cd_3780ad92c927 -->|defined in| bba68af7_04c2_8ee6_82f0_73e08fa3f9cd
  9205ab31_1c96_0d6b_c04c_5f510827b2ac["handleGzipFooter()"]
  9205ab31_1c96_0d6b_c04c_5f510827b2ac -->|calls| d0cd03db_9b26_0705_c3cd_3780ad92c927
  b05f4322_2917_b60e_0c34_198b6d36ffdc["verifyCrc()"]
  d0cd03db_9b26_0705_c3cd_3780ad92c927 -->|calls| b05f4322_2917_b60e_0c34_198b6d36ffdc
  style d0cd03db_9b26_0705_c3cd_3780ad92c927 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java lines 467–483

    private boolean readGZIPFooter(ByteBuf in) {
        if (in.readableBytes() < 8) {
            return false;
        }

        boolean enoughData = verifyCrc(in);
        assert enoughData;

        // read ISIZE and verify
        int dataLength = in.readIntLE();
        int readLength = inflater.getTotalOut();
        if (dataLength != readLength) {
            throw new DecompressionException(
                    "Number of bytes mismatch. Expected: " + dataLength + ", Got: " + readLength);
        }
        return true;
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does readGZIPFooter() do?
readGZIPFooter() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java.
Where is readGZIPFooter() defined?
readGZIPFooter() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java at line 467.
What does readGZIPFooter() call?
readGZIPFooter() calls 1 function(s): verifyCrc.
What calls readGZIPFooter()?
readGZIPFooter() is called by 1 function(s): handleGzipFooter.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free