testDuplicateBytesInArrayMultipleThreads() — netty Function Reference
Architecture documentation for the testDuplicateBytesInArrayMultipleThreads() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e99604a4_d277_337f_3d77_30c98f2b38ed["testDuplicateBytesInArrayMultipleThreads()"] 2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"] e99604a4_d277_337f_3d77_30c98f2b38ed -->|defined in| 2436e747_1306_235e_86df_d12765b22d51 style e99604a4_d277_337f_3d77_30c98f2b38ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 553–566
@Test
public void testDuplicateBytesInArrayMultipleThreads() throws Exception {
final byte[] bytes = new byte[8];
ThreadLocalRandom.current().nextBytes(bytes);
ByteBuffer nioBuffer = allocate(bytes.length);
nioBuffer.put(bytes);
nioBuffer.flip();
final ByteBuf buffer = buffer(nioBuffer.asReadOnlyBuffer());
try {
testBytesInArrayMultipleThreads(buffer, bytes, false);
} finally {
buffer.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDuplicateBytesInArrayMultipleThreads() do?
testDuplicateBytesInArrayMultipleThreads() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java.
Where is testDuplicateBytesInArrayMultipleThreads() defined?
testDuplicateBytesInArrayMultipleThreads() is defined in buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java at line 553.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free