Home / Function/ testWrapDstBigEnough() — netty Function Reference

testWrapDstBigEnough() — netty Function Reference

Architecture documentation for the testWrapDstBigEnough() function in OpenSslEngineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f0c375a1_7f71_e0df_4d82_f2ef91df8771["testWrapDstBigEnough()"]
  08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"]
  f0c375a1_7f71_e0df_4d82_f2ef91df8771 -->|defined in| 08957e63_66e1_e2b4_c8aa_4f617c598a7d
  f490308d_2252_4fa8_afe5_54785f847646["testWrapWithDifferentSizes()"]
  f490308d_2252_4fa8_afe5_54785f847646 -->|calls| f0c375a1_7f71_e0df_4d82_f2ef91df8771
  style f0c375a1_7f71_e0df_4d82_f2ef91df8771 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 1074–1088

    private void testWrapDstBigEnough(BufferType type, SSLEngine engine, int srcLen) throws SSLException {
        ByteBuffer src = allocateBuffer(type, srcLen);
        ByteBuffer dst = allocateBuffer(type, srcLen + unwrapEngine(engine).maxWrapOverhead());

        SSLEngineResult result = engine.wrap(src, dst);
        assertEquals(SSLEngineResult.Status.OK, result.getStatus());
        int consumed = result.bytesConsumed();
        int produced = result.bytesProduced();
        assertEquals(srcLen, consumed);
        assertTrue(produced > consumed);

        dst.flip();
        assertEquals(produced, dst.remaining());
        assertFalse(src.hasRemaining());
    }

Domain

Subdomains

Frequently Asked Questions

What does testWrapDstBigEnough() do?
testWrapDstBigEnough() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is testWrapDstBigEnough() defined?
testWrapDstBigEnough() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 1074.
What calls testWrapDstBigEnough()?
testWrapDstBigEnough() is called by 1 function(s): testWrapWithDifferentSizes.

Analyze Your Own Codebase

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

Try Supermodel Free