testWrapBufferWithNonZeroPosition() — netty Function Reference
Architecture documentation for the testWrapBufferWithNonZeroPosition() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6c46b674_0ca6_933e_cc23_96a9866d051a["testWrapBufferWithNonZeroPosition()"] 2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"] 6c46b674_0ca6_933e_cc23_96a9866d051a -->|defined in| 2436e747_1306_235e_86df_d12765b22d51 style 6c46b674_0ca6_933e_cc23_96a9866d051a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 358–367
@Test
public void testWrapBufferWithNonZeroPosition() {
ByteBuf buf = buffer(((ByteBuffer) allocate(16)
.putLong(1).flip().position(1)).asReadOnlyBuffer());
ByteBuf slice = buf.slice();
assertEquals(buf, slice);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWrapBufferWithNonZeroPosition() do?
testWrapBufferWithNonZeroPosition() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java.
Where is testWrapBufferWithNonZeroPosition() defined?
testWrapBufferWithNonZeroPosition() is defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java at line 358.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free