testLargeEncode() — netty Function Reference
Architecture documentation for the testLargeEncode() function in JdkZlibTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3dc07b32_a079_2339_c6e7_90cf08995827["testLargeEncode()"] 4c83b538_e9fd_3b12_c32e_629bfd12e1ce["JdkZlibTest"] 3dc07b32_a079_2339_c6e7_90cf08995827 -->|defined in| 4c83b538_e9fd_3b12_c32e_629bfd12e1ce 92a13212_51ac_5e91_5e2b_fbaccf2455fa["LimitedByteBufAllocator()"] 3dc07b32_a079_2339_c6e7_90cf08995827 -->|calls| 92a13212_51ac_5e91_5e2b_fbaccf2455fa style 3dc07b32_a079_2339_c6e7_90cf08995827 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java lines 174–188
@Test
public void testLargeEncode() throws Exception {
// construct a 128M buffer out of many times the same 1M buffer :)
byte[] smallArray = new byte[1024 * 1024];
byte[][] arrayOfArrays = new byte[128][];
Arrays.fill(arrayOfArrays, smallArray);
ByteBuf bigBuffer = Unpooled.wrappedBuffer(arrayOfArrays);
EmbeddedChannel channel = new EmbeddedChannel(new JdkZlibEncoder(ZlibWrapper.NONE));
channel.config().setAllocator(new LimitedByteBufAllocator(channel.alloc()));
assertTrue(channel.writeOutbound(bigBuffer));
assertTrue(channel.finish());
channel.checkException();
assertTrue(channel.releaseOutbound());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testLargeEncode() do?
testLargeEncode() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java.
Where is testLargeEncode() defined?
testLargeEncode() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java at line 174.
What does testLargeEncode() call?
testLargeEncode() calls 1 function(s): LimitedByteBufAllocator.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free