decode() — netty Function Reference
Architecture documentation for the decode() function in SpdyHeaderBlockZlibDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 55f940f4_62a0_5f9c_ae8e_7b27e9a877bd["decode()"] 3e933b4d_7bfe_3a56_91b7_1100f316848a["SpdyHeaderBlockZlibDecoder"] 55f940f4_62a0_5f9c_ae8e_7b27e9a877bd -->|defined in| 3e933b4d_7bfe_3a56_91b7_1100f316848a 966094b9_d155_4bfe_119e_1f30e062e3bf["setInput()"] 55f940f4_62a0_5f9c_ae8e_7b27e9a877bd -->|calls| 966094b9_d155_4bfe_119e_1f30e062e3bf 3fcd2be6_3d2c_6c3a_7f5b_80286c53b539["decompress()"] 55f940f4_62a0_5f9c_ae8e_7b27e9a877bd -->|calls| 3fcd2be6_3d2c_6c3a_7f5b_80286c53b539 style 55f940f4_62a0_5f9c_ae8e_7b27e9a877bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoder.java lines 40–57
@Override
void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws Exception {
int len = setInput(headerBlock);
int numBytes;
do {
numBytes = decompress(alloc, frame);
} while (numBytes > 0);
// z_stream has an internal 64-bit hold buffer
// it is always capable of consuming the entire input
if (decompressor.getRemaining() != 0) {
// we reached the end of the deflate stream
throw INVALID_HEADER_BLOCK;
}
headerBlock.skipBytes(len);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does decode() do?
decode() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoder.java.
Where is decode() defined?
decode() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaderBlockZlibDecoder.java at line 40.
What does decode() call?
decode() calls 2 function(s): decompress, setInput.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free