Home / Function/ testGetReadInt() — netty Function Reference

testGetReadInt() — netty Function Reference

Architecture documentation for the testGetReadInt() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  62a25c3f_7b77_50f4_1bc5_96d056b3a3d0["testGetReadInt()"]
  2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"]
  62a25c3f_7b77_50f4_1bc5_96d056b3a3d0 -->|defined in| 2436e747_1306_235e_86df_d12765b22d51
  style 62a25c3f_7b77_50f4_1bc5_96d056b3a3d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 272–284

    @Test
    public void testGetReadInt() {
        ByteBuf buf = buffer(((ByteBuffer) allocate(8).putInt(1).putInt(2).flip()).asReadOnlyBuffer());

        assertEquals(1, buf.getInt(0));
        assertEquals(2, buf.getInt(4));

        assertEquals(1, buf.readInt());
        assertEquals(2, buf.readInt());
        assertFalse(buf.isReadable());

        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free