Home / Function/ testGetByte() — netty Function Reference

testGetByte() — netty Function Reference

Architecture documentation for the testGetByte() function in ReplayingDecoderByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d7234ecc_e373_72c0_46af_f6d4a1839aae["testGetByte()"]
  ef895588_b14f_ef47_4065_265c5001cad2["ReplayingDecoderByteBufTest"]
  d7234ecc_e373_72c0_46af_f6d4a1839aae -->|defined in| ef895588_b14f_ef47_4065_265c5001cad2
  style d7234ecc_e373_72c0_46af_f6d4a1839aae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderByteBufTest.java lines 57–77

    @Test
    public void testGetByte() {
        ByteBuf buf = Unpooled.copiedBuffer("TestBuffer", CharsetUtil.ISO_8859_1);
        ReplayingDecoderByteBuf buffer = new ReplayingDecoderByteBuf(buf);

        boolean error;
        int i = 0;
        try {
            for (;;) {
                buffer.getByte(i);
                i++;
            }
        } catch (Signal e) {
            error = true;
        }

        assertTrue(error);
        assertEquals(10, i);

        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testGetByte() do?
testGetByte() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderByteBufTest.java.
Where is testGetByte() defined?
testGetByte() is defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderByteBufTest.java at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free