Home / Function/ testAllocateDirectBufferExceedMaxEncodeSize() — netty Function Reference

testAllocateDirectBufferExceedMaxEncodeSize() — netty Function Reference

Architecture documentation for the testAllocateDirectBufferExceedMaxEncodeSize() function in Lz4FrameEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9756b24f_36da_e290_f4c0_d428dc7cacb5["testAllocateDirectBufferExceedMaxEncodeSize()"]
  16452743_407c_c5f6_ee9f_baa8b84020f0["Lz4FrameEncoderTest"]
  9756b24f_36da_e290_f4c0_d428dc7cacb5 -->|defined in| 16452743_407c_c5f6_ee9f_baa8b84020f0
  style 9756b24f_36da_e290_f4c0_d428dc7cacb5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java lines 151–168

    @Test
    public void testAllocateDirectBufferExceedMaxEncodeSize() {
        final int maxEncodeSize = 1024;
        final Lz4FrameEncoder encoder = newEncoder(Lz4Constants.DEFAULT_BLOCK_SIZE, maxEncodeSize);
        int inputBufferSize = maxEncodeSize * 10;
        final ByteBuf buf = ByteBufAllocator.DEFAULT.buffer(inputBufferSize, inputBufferSize);
        try {
            buf.writerIndex(inputBufferSize);
            assertThrows(EncoderException.class, new Executable() {
                @Override
                public void execute() {
                    encoder.allocateBuffer(ctx, buf, false);
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free