testDecompressionOfBatchedFlow() — netty Function Reference
Architecture documentation for the testDecompressionOfBatchedFlow() function in BrotliDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b2407867_eb57_474b_c57e_f79e082129bf["testDecompressionOfBatchedFlow()"] 63f55b46_4f95_0492_5bc8_569080fc26cd["BrotliDecoderTest"] b2407867_eb57_474b_c57e_f79e082129bf -->|defined in| 63f55b46_4f95_0492_5bc8_569080fc26cd 0238edf1_c515_37bf_6bab_ff694f8edaec["testDecompressionOfBatchedFlowOfData()"] 0238edf1_c515_37bf_6bab_ff694f8edaec -->|calls| b2407867_eb57_474b_c57e_f79e082129bf style b2407867_eb57_474b_c57e_f79e082129bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/BrotliDecoderTest.java lines 135–152
private void testDecompressionOfBatchedFlow(final ByteBuf expected, final ByteBuf data) {
final int compressedLength = data.readableBytes();
int written = 0, length = RANDOM.nextInt(100);
while (written + length < compressedLength) {
ByteBuf compressedBuf = data.retainedSlice(written, length);
channel.writeInbound(compressedBuf);
written += length;
length = RANDOM.nextInt(100);
}
ByteBuf compressedBuf = data.slice(written, compressedLength - written);
assertTrue(channel.writeInbound(compressedBuf.retain()));
ByteBuf decompressedBuf = readDecompressed(channel);
assertEquals(expected, decompressedBuf);
decompressedBuf.release();
data.release();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does testDecompressionOfBatchedFlow() do?
testDecompressionOfBatchedFlow() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/BrotliDecoderTest.java.
Where is testDecompressionOfBatchedFlow() defined?
testDecompressionOfBatchedFlow() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/BrotliDecoderTest.java at line 135.
What calls testDecompressionOfBatchedFlow()?
testDecompressionOfBatchedFlow() is called by 1 function(s): testDecompressionOfBatchedFlowOfData.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free