ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in SSLEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD efa54912_e079_cd32_6bf8_7fc6ce087a3c["ByteBuf()"] 36746ada_c520_ff41_b142_9731cc8488a6["TestByteBufAllocator"] efa54912_e079_cd32_6bf8_7fc6ce087a3c -->|defined in| 36746ada_c520_ff41_b142_9731cc8488a6 style efa54912_e079_cd32_6bf8_7fc6ce087a3c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 334–347
@Override
public ByteBuf buffer() {
switch (type) {
case Direct:
return allocator.directBuffer();
case Heap:
return allocator.heapBuffer();
case Mixed:
return ThreadLocalRandom.current().nextBoolean() ?
allocator.directBuffer() : allocator.heapBuffer();
default:
throw new Error("Unexpected buffer type: " + type);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is ByteBuf() defined?
ByteBuf() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 334.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free