Home / Function/ readByteThrowsIndexOutOfBoundsException() — netty Function Reference

readByteThrowsIndexOutOfBoundsException() — netty Function Reference

Architecture documentation for the readByteThrowsIndexOutOfBoundsException() function in AbstractByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a2663c64_4fef_b721_d88e_e2ac2859d407["readByteThrowsIndexOutOfBoundsException()"]
  6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"]
  a2663c64_4fef_b721_d88e_e2ac2859d407 -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242
  style a2663c64_4fef_b721_d88e_e2ac2859d407 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 3013–3028

    @Test
    public void readByteThrowsIndexOutOfBoundsException() {
        final ByteBuf buffer = newBuffer(8);
        try {
            assertThrows(IndexOutOfBoundsException.class, new Executable() {
                @Override
                public void execute() {
                    buffer.writeByte(0);
                    assertEquals((byte) 0, buffer.readByte());
                    buffer.readByte();
                }
            });
        } finally {
            buffer.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does readByteThrowsIndexOutOfBoundsException() do?
readByteThrowsIndexOutOfBoundsException() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java.
Where is readByteThrowsIndexOutOfBoundsException() defined?
readByteThrowsIndexOutOfBoundsException() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java at line 3013.

Analyze Your Own Codebase

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

Try Supermodel Free