Home / Function/ testCopyWithOffset() — netty Function Reference

testCopyWithOffset() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 346–355

    @Test
    public void testCopyWithOffset() {
        ByteBuf buf = buffer(((ByteBuffer) allocate(16).putLong(1).putLong(2).flip()).asReadOnlyBuffer());
        ByteBuf copy = buf.copy(1, 9);

        assertEquals(buf.slice(1, 9), copy);

        buf.release();
        copy.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free