Home / Function/ testDecodeCopyWithOffsetBeforeChunk() — netty Function Reference

testDecodeCopyWithOffsetBeforeChunk() — netty Function Reference

Architecture documentation for the testDecodeCopyWithOffsetBeforeChunk() function in SnappyTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2156b37a_98ff_4b8a_1421_e6971f5a2b56["testDecodeCopyWithOffsetBeforeChunk()"]
  1a449087_fef9_c1b9_33e3_88b8aff8d675["SnappyTest"]
  2156b37a_98ff_4b8a_1421_e6971f5a2b56 -->|defined in| 1a449087_fef9_c1b9_33e3_88b8aff8d675
  style 2156b37a_98ff_4b8a_1421_e6971f5a2b56 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java lines 107–128

    @Test
    public void testDecodeCopyWithOffsetBeforeChunk() {
        final ByteBuf in = Unpooled.wrappedBuffer(new byte[] {
            0x0a, // preamble length
            0x04 << 2, // literal tag + length
            0x6e, 0x65, 0x74, 0x74, 0x79, // "netty"
            0x05 << 2 | 0x01, // copy with 1-byte offset + length
            0x0b // INVALID offset (greater than chunk size)
        });
        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

Frequently Asked Questions

What does testDecodeCopyWithOffsetBeforeChunk() do?
testDecodeCopyWithOffsetBeforeChunk() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java.
Where is testDecodeCopyWithOffsetBeforeChunk() defined?
testDecodeCopyWithOffsetBeforeChunk() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyTest.java at line 107.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free