Home / Function/ doReadBytes() — netty Function Reference

doReadBytes() — netty Function Reference

Architecture documentation for the doReadBytes() function in NioSocketChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e008329b_c638_fe56_776c_4021a81ce4bc["doReadBytes()"]
  f2eb70be_1f76_3e54_0854_050839fa58d4["NioSocketChannel"]
  e008329b_c638_fe56_776c_4021a81ce4bc -->|defined in| f2eb70be_1f76_3e54_0854_050839fa58d4
  style e008329b_c638_fe56_776c_4021a81ce4bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java lines 346–351

    @Override
    protected int doReadBytes(ByteBuf byteBuf) throws Exception {
        final RecvByteBufAllocator.Handle allocHandle = unsafe().recvBufAllocHandle();
        allocHandle.attemptedBytesRead(byteBuf.writableBytes());
        return byteBuf.writeBytes(javaChannel(), allocHandle.attemptedBytesRead());
    }

Domain

Subdomains

Frequently Asked Questions

What does doReadBytes() do?
doReadBytes() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java.
Where is doReadBytes() defined?
doReadBytes() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java at line 346.

Analyze Your Own Codebase

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

Try Supermodel Free