Home / Function/ shouldGetPacketLengthOfGmsslProtocolFromByteBuf() — netty Function Reference

shouldGetPacketLengthOfGmsslProtocolFromByteBuf() — netty Function Reference

Architecture documentation for the shouldGetPacketLengthOfGmsslProtocolFromByteBuf() function in SslUtilsTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1f473e32_f187_3c6e_2956_d2ce68187530["shouldGetPacketLengthOfGmsslProtocolFromByteBuf()"]
  48820ee9_de8c_874d_12df_29f6fb10052e["SslUtilsTest"]
  1f473e32_f187_3c6e_2956_d2ce68187530 -->|defined in| 48820ee9_de8c_874d_12df_29f6fb10052e
  style 1f473e32_f187_3c6e_2956_d2ce68187530 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java lines 87–98

    @Test
    public void shouldGetPacketLengthOfGmsslProtocolFromByteBuf() {
        int bodyLength = 65;
        ByteBuf buf = Unpooled.buffer()
                              .writeByte(SslUtils.SSL_CONTENT_TYPE_HANDSHAKE)
                              .writeShort(SslUtils.GMSSL_PROTOCOL_VERSION)
                              .writeShort(bodyLength);

        int packetLength = getEncryptedPacketLength(buf, 0, true);
        assertEquals(bodyLength + SslUtils.SSL_RECORD_HEADER_LENGTH, packetLength);
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldGetPacketLengthOfGmsslProtocolFromByteBuf() do?
shouldGetPacketLengthOfGmsslProtocolFromByteBuf() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java.
Where is shouldGetPacketLengthOfGmsslProtocolFromByteBuf() defined?
shouldGetPacketLengthOfGmsslProtocolFromByteBuf() is defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java at line 87.

Analyze Your Own Codebase

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

Try Supermodel Free