testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() — netty Function Reference
Architecture documentation for the testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() function in PooledByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9ca85707_202d_1269_2c41_0df2ec220449["testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled()"] f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"] 9ca85707_202d_1269_2c41_0df2ec220449 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947 style 9ca85707_202d_1269_2c41_0df2ec220449 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 116–133
@Test
public void testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() {
PooledByteBufAllocator allocator = newAllocator(true);
ByteBuf ioBuffer = allocator.ioBuffer();
assertTrue(ioBuffer.isDirect());
ioBuffer.release();
PooledByteBufAllocator unpooledAllocator = newUnpooledAllocator();
ioBuffer = unpooledAllocator.ioBuffer();
if (PlatformDependent.canReliabilyFreeDirectBuffers()) {
assertTrue(ioBuffer.isDirect());
} else {
assertFalse(ioBuffer.isDirect());
}
ioBuffer.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() do?
testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java.
Where is testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() defined?
testIOBuffersAreDirectWhenCleanerAvailableOrDirectBuffersPooled() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 116.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free