ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in PooledHeapByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1c5de21b_8119_3d49_301a_c8e323551d3c["ByteBuf()"] a62cfc26_17fe_4ffa_c982_878418dba986["PooledHeapByteBuf"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|defined in| a62cfc26_17fe_4ffa_c982_878418dba986 d2e6af1f_5f75_726e_9c2a_a1692362a778["hasMemoryAddress()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| d2e6af1f_5f75_726e_9c2a_a1692362a778 e7efd946_faf0_d010_acf9_108e08d3957a["memoryAddress()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| e7efd946_faf0_d010_acf9_108e08d3957a 1b409aa1_522d_68dc_d739_39c6b172bc60["hasArray()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| 1b409aa1_522d_68dc_d739_39c6b172bc60 595b9c6f_bf78_9409_066f_6a6c4563f80b["array()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| 595b9c6f_bf78_9409_066f_6a6c4563f80b bdfd4c16_5044_ffff_21a3_1ba1b9bbcc71["arrayOffset()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| bdfd4c16_5044_ffff_21a3_1ba1b9bbcc71 c0ac0c89_deff_84c7_f9b7_48f8f80f8ffd["setBytes()"] 1c5de21b_8119_3d49_301a_c8e323551d3c -->|calls| c0ac0c89_deff_84c7_f9b7_48f8f80f8ffd style 1c5de21b_8119_3d49_301a_c8e323551d3c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledHeapByteBuf.java lines 96–107
@Override
public final ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) {
checkDstIndex(index, length, dstIndex, dst.capacity());
if (dst.hasMemoryAddress() && PlatformDependent.hasUnsafe()) {
PlatformDependent.copyMemory(memory, idx(index), dst.memoryAddress() + dstIndex, length);
} else if (dst.hasArray()) {
getBytes(index, dst.array(), dst.arrayOffset() + dstIndex, length);
} else {
dst.setBytes(dstIndex, memory, idx(index), length);
}
return this;
}
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/PooledHeapByteBuf.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/PooledHeapByteBuf.java at line 96.
What does ByteBuf() call?
ByteBuf() calls 6 function(s): array, arrayOffset, hasArray, hasMemoryAddress, memoryAddress, setBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free