split() — netty Function Reference
Architecture documentation for the split() function in SniHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a4a7b127_212b_3c93_1374_d19982ad8d7a["split()"] 00b45f27_cbf5_af92_430f_7f0426117fa5["SniHandlerTest"] a4a7b127_212b_3c93_1374_d19982ad8d7a -->|defined in| 00b45f27_cbf5_af92_430f_7f0426117fa5 6b9b70c0_eeec_0906_9031_a6f1f1812e07["clientHelloInMultipleFragments()"] 6b9b70c0_eeec_0906_9031_a6f1f1812e07 -->|calls| a4a7b127_212b_3c93_1374_d19982ad8d7a style a4a7b127_212b_3c93_1374_d19982ad8d7a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SniHandlerTest.java lines 694–712
private static List<ByteBuf> split(ByteBuf clientHello, int maxSize) {
final int type = clientHello.readUnsignedByte();
final int version = clientHello.readUnsignedShort();
final int length = clientHello.readUnsignedShort();
assertEquals(length, clientHello.readableBytes());
final List<ByteBuf> result = new ArrayList<ByteBuf>();
while (clientHello.readableBytes() > 0) {
final int toRead = Math.min(maxSize, clientHello.readableBytes());
final ByteBuf bb = clientHello.alloc().buffer(SslUtils.SSL_RECORD_HEADER_LENGTH + toRead);
bb.writeByte(type);
bb.writeShort(version);
bb.writeShort(toRead);
bb.writeBytes(clientHello, toRead);
result.add(bb);
}
clientHello.release();
return result;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does split() do?
split() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SniHandlerTest.java.
Where is split() defined?
split() is defined in handler/src/test/java/io/netty/handler/ssl/SniHandlerTest.java at line 694.
What calls split()?
split() is called by 1 function(s): clientHelloInMultipleFragments.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free