ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in UnsafeByteBufUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 14f9f3a8_780a_8e53_6ed2_3707bf1799c6["ByteBuf()"] 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a["UnsafeByteBufUtil"] 14f9f3a8_780a_8e53_6ed2_3707bf1799c6 -->|defined in| 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a style 14f9f3a8_780a_8e53_6ed2_3707bf1799c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 452–464
static ByteBuf copy(AbstractByteBuf buf, long addr, int index, int length) {
buf.checkIndex(index, length);
ByteBuf copy = buf.alloc().directBuffer(length, buf.maxCapacity());
if (length != 0) {
if (copy.hasMemoryAddress()) {
PlatformDependent.copyMemory(addr, copy.memoryAddress(), length);
copy.setIndex(0, length);
} else {
copy.writeBytes(buf, index, length);
}
}
return copy;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java at line 452.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free