Home / Function/ setBytes() — netty Function Reference

setBytes() — netty Function Reference

Architecture documentation for the setBytes() function in PooledByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b55118a2_4891_cfc9_56b9_7c12a81ba36e["setBytes()"]
  49d00ede_f018_5e8f_42f9_08fdd974fe00["PooledByteBuf"]
  b55118a2_4891_cfc9_56b9_7c12a81ba36e -->|defined in| 49d00ede_f018_5e8f_42f9_08fdd974fe00
  style b55118a2_4891_cfc9_56b9_7c12a81ba36e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PooledByteBuf.java lines 256–263

    @Override
    public final int setBytes(int index, ScatteringByteChannel in, int length) throws IOException {
        try {
            return in.read(internalNioBuffer(index, length));
        } catch (ClosedChannelException ignored) {
            return -1;
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setBytes() do?
setBytes() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBuf.java.
Where is setBytes() defined?
setBytes() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBuf.java at line 256.

Analyze Your Own Codebase

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

Try Supermodel Free