ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in PooledDirectByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 16606b5d_4d53_ddb3_5511_6a39a4ae2037["ByteBuf()"] 0c356342_2e64_41e8_80a2_1d1923dc7709["PooledDirectByteBuf"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|defined in| 0c356342_2e64_41e8_80a2_1d1923dc7709 fecbc6a3_5567_56a5_8b90_f83b62f414d0["getBytes()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| fecbc6a3_5567_56a5_8b90_f83b62f414d0 3097e535_0dfd_fc3f_b821_18ccd37d0266["hasArray()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| 3097e535_0dfd_fc3f_b821_18ccd37d0266 e704f667_b7f8_f38f_402a_4e6f347f1253["array()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| e704f667_b7f8_f38f_402a_4e6f347f1253 81e49107_d7b6_4306_2f90_cc61d042d746["arrayOffset()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| 81e49107_d7b6_4306_2f90_cc61d042d746 716abc9b_6077_6ed3_f36c_cb5977fa7477["setBytes()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| 716abc9b_6077_6ed3_f36c_cb5977fa7477 style 16606b5d_4d53_ddb3_5511_6a39a4ae2037 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java lines 108–123
@Override
public ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) {
checkDstIndex(index, length, dstIndex, dst.capacity());
if (dst.hasArray()) {
getBytes(index, dst.array(), dst.arrayOffset() + dstIndex, length);
} else if (dst.nioBufferCount() > 0) {
for (ByteBuffer bb: dst.nioBuffers(dstIndex, length)) {
int bbLen = bb.remaining();
getBytes(index, bb);
index += bbLen;
}
} else {
dst.setBytes(dstIndex, this, 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/PooledDirectByteBuf.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java at line 108.
What does ByteBuf() call?
ByteBuf() calls 5 function(s): array, arrayOffset, getBytes, hasArray, setBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free