Home / Function/ setChunkLength() — netty Function Reference

setChunkLength() — netty Function Reference

Architecture documentation for the setChunkLength() function in SnappyFrameEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6a3a9fdb_f6b2_f3cc_3d7b_2162896b33dc["setChunkLength()"]
  30e5e893_9366_6707_dcb5_d8aa1087057f["SnappyFrameEncoder"]
  6a3a9fdb_f6b2_f3cc_3d7b_2162896b33dc -->|defined in| 30e5e893_9366_6707_dcb5_d8aa1087057f
  c98be7cc_8336_cbe5_75fa_58753a9b740c["encode()"]
  c98be7cc_8336_cbe5_75fa_58753a9b740c -->|calls| 6a3a9fdb_f6b2_f3cc_3d7b_2162896b33dc
  style 6a3a9fdb_f6b2_f3cc_3d7b_2162896b33dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameEncoder.java lines 126–132

    private static void setChunkLength(ByteBuf out, int lengthIdx) {
        int chunkLength = out.writerIndex() - lengthIdx - 3;
        if (chunkLength >>> 24 != 0) {
            throw new CompressionException("compressed data too large: " + chunkLength);
        }
        out.setMediumLE(lengthIdx, chunkLength);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does setChunkLength() do?
setChunkLength() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameEncoder.java.
Where is setChunkLength() defined?
setChunkLength() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/SnappyFrameEncoder.java at line 126.
What calls setChunkLength()?
setChunkLength() is called by 1 function(s): encode.

Analyze Your Own Codebase

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

Try Supermodel Free