setBytes() — netty Function Reference
Architecture documentation for the setBytes() function in PooledDirectByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 716abc9b_6077_6ed3_f36c_cb5977fa7477["setBytes()"] 0c356342_2e64_41e8_80a2_1d1923dc7709["PooledDirectByteBuf"] 716abc9b_6077_6ed3_f36c_cb5977fa7477 -->|defined in| 0c356342_2e64_41e8_80a2_1d1923dc7709 16606b5d_4d53_ddb3_5511_6a39a4ae2037["ByteBuf()"] 16606b5d_4d53_ddb3_5511_6a39a4ae2037 -->|calls| 716abc9b_6077_6ed3_f36c_cb5977fa7477 style 716abc9b_6077_6ed3_f36c_cb5977fa7477 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java lines 267–279
@Override
public int setBytes(int index, InputStream in, int length) throws IOException {
checkIndex(index, length);
byte[] tmp = ByteBufUtil.threadLocalTempArray(length);
int readBytes = in.read(tmp, 0, length);
if (readBytes <= 0) {
return readBytes;
}
ByteBuffer tmpBuf = internalNioBuffer();
tmpBuf.position(idx(index));
tmpBuf.put(tmp, 0, readBytes);
return readBytes;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setBytes() do?
setBytes() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java.
Where is setBytes() defined?
setBytes() is defined in buffer/src/main/java/io/netty/buffer/PooledDirectByteBuf.java at line 267.
What calls setBytes()?
setBytes() is called by 1 function(s): ByteBuf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free