testDecodeCopyWithTinyOffset() — netty Function Reference
Architecture documentation for the testDecodeCopyWithTinyOffset() function in SnappyTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2df7d882_496d_d522_22c3_9e2882e0575e["testDecodeCopyWithTinyOffset()"] 1a449087_fef9_c1b9_33e3_88b8aff8d675["SnappyTest"] 2df7d882_496d_d522_22c3_9e2882e0575e -->|defined in| 1a449087_fef9_c1b9_33e3_88b8aff8d675 style 2df7d882_496d_d522_22c3_9e2882e0575e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java lines 84–105
@Test
public void testDecodeCopyWithTinyOffset() {
final ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
0x0b, // preamble length
0x04 << 2, // literal tag + length
0x6e, 0x65, 0x74, 0x74, 0x79, // "netty"
0x05 << 2 | 0x01, // copy with 1-byte offset + length
0x00 // INVALID offset (< 1)
});
final ByteBuf out = Unpooled.buffer(10);
try {
assertThrows(DecompressionException.class, new Executable() {
@Override
public void execute() {
snappy.decode(in, out);
}
});
} finally {
in.release();
out.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecodeCopyWithTinyOffset() do?
testDecodeCopyWithTinyOffset() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java.
Where is testDecodeCopyWithTinyOffset() defined?
testDecodeCopyWithTinyOffset() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java at line 84.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free