testTinyDecode() — netty Function Reference
Architecture documentation for the testTinyDecode() function in ProtobufVarint32FrameDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 28dd185c_ae80_5bac_4620_200249b30603["testTinyDecode()"] 89708b8b_0bd5_7657_39f7_5e017cf8f339["ProtobufVarint32FrameDecoderTest"] 28dd185c_ae80_5bac_4620_200249b30603 -->|defined in| 89708b8b_0bd5_7657_39f7_5e017cf8f339 style 28dd185c_ae80_5bac_4620_200249b30603 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32FrameDecoderTest.java lines 39–56
@Test
public void testTinyDecode() {
byte[] b = { 4, 1, 1, 1, 1 };
assertFalse(ch.writeInbound(wrappedBuffer(b, 0, 1)));
assertNull(ch.readInbound());
assertFalse(ch.writeInbound(wrappedBuffer(b, 1, 2)));
assertNull(ch.readInbound());
assertTrue(ch.writeInbound(wrappedBuffer(b, 3, b.length - 3)));
ByteBuf expected = wrappedBuffer(new byte[] { 1, 1, 1, 1 });
ByteBuf actual = ch.readInbound();
assertEquals(expected, actual);
assertFalse(ch.finish());
expected.release();
actual.release();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testTinyDecode() do?
testTinyDecode() is a function in the netty codebase, defined in codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32FrameDecoderTest.java.
Where is testTinyDecode() defined?
testTinyDecode() is defined in codec-protobuf/src/test/java/io/netty/handler/codec/protobuf/ProtobufVarint32FrameDecoderTest.java at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free