Home / Function/ readBytes() — netty Function Reference

readBytes() — netty Function Reference

Architecture documentation for the readBytes() function in BrotliDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  04616cfa_11f1_d045_4bb0_45a17268e4e4["readBytes()"]
  1ab91a77_63ab_e5b9_9f8e_8e15c08c74e2["BrotliDecoder"]
  04616cfa_11f1_d045_4bb0_45a17268e4e4 -->|defined in| 1ab91a77_63ab_e5b9_9f8e_8e15c08c74e2
  f133d60d_f296_abc5_dc2a_aac22a8d324d["State()"]
  f133d60d_f296_abc5_dc2a_aac22a8d324d -->|calls| 04616cfa_11f1_d045_4bb0_45a17268e4e4
  style 04616cfa_11f1_d045_4bb0_45a17268e4e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliDecoder.java lines 111–118

    private static int readBytes(ByteBuf in, ByteBuffer dest) {
        int limit = Math.min(in.readableBytes(), dest.remaining());
        ByteBuffer slice = dest.slice();
        slice.limit(limit);
        in.readBytes(slice);
        dest.position(dest.position() + limit);
        return limit;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free