Home / Function/ getBytes() — netty Function Reference

getBytes() — netty Function Reference

Architecture documentation for the getBytes() function in PooledDirectByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fecbc6a3_5567_56a5_8b90_f83b62f414d0["getBytes()"]
  0c356342_2e64_41e8_80a2_1d1923dc7709["PooledDirectByteBuf"]
  fecbc6a3_5567_56a5_8b90_f83b62f414d0 -->|defined in| 0c356342_2e64_41e8_80a2_1d1923dc7709
  16606b5d_4d53_ddb3_5511_6a39a4ae2037["ByteBuf()"]
  16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| fecbc6a3_5567_56a5_8b90_f83b62f414d0
  style fecbc6a3_5567_56a5_8b90_f83b62f414d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java lines 161–167

    private void getBytes(int index, OutputStream out, int length, boolean internal) throws IOException {
        checkIndex(index, length);
        if (length == 0) {
            return;
        }
        ByteBufUtil.readBytes(alloc(), internal ? internalNioBuffer() : memory.duplicate(), idx(index), length, out);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does getBytes() do?
getBytes() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java.
Where is getBytes() defined?
getBytes() is defined in buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java at line 161.
What calls getBytes()?
getBytes() is called by 1 function(s): ByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free