shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() — netty Function Reference
Architecture documentation for the shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() function in SslUtilsTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2bd755a1_f628_179f_5f72_66168c19db10["shouldGetPacketLengthOfGmsslProtocolFromByteBuffer()"] 48820ee9_de8c_874d_12df_29f6fb10052e["SslUtilsTest"] 2bd755a1_f628_179f_5f72_66168c19db10 -->|defined in| 48820ee9_de8c_874d_12df_29f6fb10052e style 2bd755a1_f628_179f_5f72_66168c19db10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java lines 100–111
@Test
public void shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() {
int bodyLength = 65;
ByteBuf buf = Unpooled.buffer()
.writeByte(SslUtils.SSL_CONTENT_TYPE_HANDSHAKE)
.writeShort(SslUtils.GMSSL_PROTOCOL_VERSION)
.writeShort(bodyLength);
int packetLength = getEncryptedPacketLength(new ByteBuffer[] { buf.nioBuffer() }, 0);
assertEquals(bodyLength + SslUtils.SSL_RECORD_HEADER_LENGTH, packetLength);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() do?
shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java.
Where is shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() defined?
shouldGetPacketLengthOfGmsslProtocolFromByteBuffer() is defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java at line 100.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free