shouldAggregateChunksOnDecode() — netty Function Reference
Architecture documentation for the shouldAggregateChunksOnDecode() function in BinaryMemcacheObjectAggregatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a7feb658_2137_8212_da8d_7b10a845f111["shouldAggregateChunksOnDecode()"] 76205073_1e21_c5d7_0a18_0bbe4e08c93f["BinaryMemcacheObjectAggregatorTest"] a7feb658_2137_8212_da8d_7b10a845f111 -->|defined in| 76205073_1e21_c5d7_0a18_0bbe4e08c93f style a7feb658_2137_8212_da8d_7b10a845f111 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheObjectAggregatorTest.java lines 54–80
@Test
public void shouldAggregateChunksOnDecode() {
int smallBatchSize = 2;
channel = new EmbeddedChannel(
new BinaryMemcacheRequestDecoder(smallBatchSize),
new BinaryMemcacheObjectAggregator(MAX_CONTENT_SIZE));
ByteBuf incoming = Unpooled.buffer();
incoming.writeBytes(SET_REQUEST_WITH_CONTENT);
channel.writeInbound(incoming);
FullBinaryMemcacheRequest request = channel.readInbound();
assertInstanceOf(FullBinaryMemcacheRequest.class, request);
assertNotNull(request);
assertNotNull(request.key());
assertNull(request.extras());
assertEquals(8, request.content().readableBytes());
assertEquals((byte) 0x01, request.content().readByte());
assertEquals((byte) 0x02, request.content().readByte());
request.release();
assertNull(channel.readInbound());
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldAggregateChunksOnDecode() do?
shouldAggregateChunksOnDecode() is a function in the netty codebase, defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheObjectAggregatorTest.java.
Where is shouldAggregateChunksOnDecode() defined?
shouldAggregateChunksOnDecode() is defined in codec-memcache/src/test/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheObjectAggregatorTest.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free