ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in ReferenceCountedOpenSslEngine.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bf89cd6d_c625_d59f_9ca6_dfcb378a1035["ByteBuf()"] df1ad81e_e5bf_85e6_4418_db301b4c3e66["ReferenceCountedOpenSslEngine"] bf89cd6d_c625_d59f_9ca6_dfcb378a1035 -->|defined in| df1ad81e_e5bf_85e6_4418_db301b4c3e66 5a654cb5_a186_f8ae_d05b_d708ac558525["bufferAddress()"] bf89cd6d_c625_d59f_9ca6_dfcb378a1035 -->|calls| 5a654cb5_a186_f8ae_d05b_d708ac558525 62c22963_254e_558e_59f0_10304b0c83d2["release()"] bf89cd6d_c625_d59f_9ca6_dfcb378a1035 -->|calls| 62c22963_254e_558e_59f0_10304b0c83d2 style bf89cd6d_c625_d59f_9ca6_dfcb378a1035 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java lines 650–672
private ByteBuf writeEncryptedData(final ByteBuffer src, int len) throws SSLException {
final int pos = src.position();
if (src.isDirect()) {
SSL.bioSetByteBuffer(networkBIO, bufferAddress(src) + pos, len, false);
} else {
final ByteBuf buf = alloc.directBuffer(len);
try {
final int limit = src.limit();
src.limit(pos + len);
buf.writeBytes(src);
// Restore the original position and limit because we don't want to consume from `src`.
src.position(pos);
src.limit(limit);
SSL.bioSetByteBuffer(networkBIO, memoryAddress(buf), len, false);
return buf;
} catch (Throwable cause) {
buf.release();
PlatformDependent.throwException(cause);
}
}
return null;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java.
Where is ByteBuf() defined?
ByteBuf() is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java at line 650.
What does ByteBuf() call?
ByteBuf() calls 2 function(s): bufferAddress, release.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free