testWrapBufferRoundTrip() — netty Function Reference
Architecture documentation for the testWrapBufferRoundTrip() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 099c6e2e_04c7_a796_fc57_fbd894934e54["testWrapBufferRoundTrip()"] 2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"] 099c6e2e_04c7_a796_fc57_fbd894934e54 -->|defined in| 2436e747_1306_235e_86df_d12765b22d51 style 099c6e2e_04c7_a796_fc57_fbd894934e54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 369–381
@Test
public void testWrapBufferRoundTrip() {
ByteBuf buf = buffer(((ByteBuffer) allocate(16).putInt(1).putInt(2).flip()).asReadOnlyBuffer());
assertEquals(1, buf.readInt());
ByteBuffer nioBuffer = buf.nioBuffer();
// Ensure this can be accessed without throwing a BufferUnderflowException
assertEquals(2, nioBuffer.getInt());
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWrapBufferRoundTrip() do?
testWrapBufferRoundTrip() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java.
Where is testWrapBufferRoundTrip() defined?
testWrapBufferRoundTrip() is defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java at line 369.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free