ChunkType() — netty Function Reference
Architecture documentation for the ChunkType() function in SnappyFrameDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 69ebca01_32ef_3ec5_d3f8_40806cb5e9dc["ChunkType()"] 5f033f0f_5da6_662f_fbd6_9f67efbcc2e0["SnappyFrameDecoder"] 69ebca01_32ef_3ec5_d3f8_40806cb5e9dc -->|defined in| 5f033f0f_5da6_662f_fbd6_9f67efbcc2e0 style 69ebca01_32ef_3ec5_d3f8_40806cb5e9dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java lines 246–258
private static ChunkType mapChunkType(byte type) {
if (type == 0) {
return ChunkType.COMPRESSED_DATA;
} else if (type == 1) {
return ChunkType.UNCOMPRESSED_DATA;
} else if (type == (byte) 0xff) {
return ChunkType.STREAM_IDENTIFIER;
} else if ((type & 0x80) == 0x80) {
return ChunkType.RESERVED_SKIPPABLE;
} else {
return ChunkType.RESERVED_UNSKIPPABLE;
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ChunkType() do?
ChunkType() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java.
Where is ChunkType() defined?
ChunkType() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameDecoder.java at line 246.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free