Home / Function/ channelRead0() — netty Function Reference

channelRead0() — netty Function Reference

Architecture documentation for the channelRead0() function in SocketSpdyEchoTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2c64a59e_d389_7146_6693_ee32f2b34e31["channelRead0()"]
  4c87ad0e_19af_537a_1acb_ce96aa7fd113["SpdyEchoTestClientHandler"]
  2c64a59e_d389_7146_6693_ee32f2b34e31 -->|defined in| 4c87ad0e_19af_537a_1acb_ce96aa7fd113
  style 2c64a59e_d389_7146_6693_ee32f2b34e31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSpdyEchoTest.java lines 296–307

        @Override
        public void channelRead0(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
            byte[] actual = new byte[in.readableBytes()];
            in.readBytes(actual);

            int lastIdx = counter;
            for (int i = 0; i < actual.length; i ++) {
                assertEquals(frames.getByte(ignoredBytes + i + lastIdx), actual[i]);
            }

            counter += actual.length;
        }

Domain

Subdomains

Frequently Asked Questions

What does channelRead0() do?
channelRead0() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSpdyEchoTest.java.
Where is channelRead0() defined?
channelRead0() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSpdyEchoTest.java at line 296.

Analyze Your Own Codebase

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

Try Supermodel Free