testDecodeWithOverlyLongPreamble() — netty Function Reference
Architecture documentation for the testDecodeWithOverlyLongPreamble() function in SnappyTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 99377582_dc85_4444_3b07_96b987e49114["testDecodeWithOverlyLongPreamble()"] 1a449087_fef9_c1b9_33e3_88b8aff8d675["SnappyTest"] 99377582_dc85_4444_3b07_96b987e49114 -->|defined in| 1a449087_fef9_c1b9_33e3_88b8aff8d675 style 99377582_dc85_4444_3b07_96b987e49114 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java lines 130–149
@Test
public void testDecodeWithOverlyLongPreamble() {
final ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
-0x80, -0x80, -0x80, -0x80, 0x7f, // preamble length
0x04 << 2, // literal tag + length
0x6e, 0x65, 0x74, 0x74, 0x79, // "netty"
});
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 testDecodeWithOverlyLongPreamble() do?
testDecodeWithOverlyLongPreamble() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java.
Where is testDecodeWithOverlyLongPreamble() defined?
testDecodeWithOverlyLongPreamble() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java at line 130.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free