Home / Function/ doReadBytes() — netty Function Reference

doReadBytes() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/socket/oio/OioSocketChannel.java lines 155–165

    @Override
    protected int doReadBytes(ByteBuf buf) throws Exception {
        if (socket.isClosed()) {
            return -1;
        }
        try {
            return super.doReadBytes(buf);
        } catch (SocketTimeoutException ignored) {
            return 0;
        }
    }

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/oio/OioSocketChannel.java.
Where is doReadBytes() defined?
doReadBytes() is defined in transport/src/main/java/io/netty/channel/socket/oio/OioSocketChannel.java at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free