setBytes() — netty Function Reference
Architecture documentation for the setBytes() function in AdaptivePoolingAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c4507935_a46f_63d6_724d_0b79ac9627bd["setBytes()"] e9381b1a_dc06_843c_be7e_5e0eddee4a3a["AdaptiveByteBuf"] c4507935_a46f_63d6_724d_0b79ac9627bd -->|defined in| e9381b1a_dc06_843c_be7e_5e0eddee4a3a 9928adc3_c1c7_6145_dd14_c9c1e6101da8["ByteBuf()"] 9928adc3_c1c7_6145_dd14_c9c1e6101da8 -->|calls| c4507935_a46f_63d6_724d_0b79ac9627bd 09330b09_48e7_0b2a_77f1_8be816eb5ff4["setCharSequence0()"] 09330b09_48e7_0b2a_77f1_8be816eb5ff4 -->|calls| c4507935_a46f_63d6_724d_0b79ac9627bd 40622caf_e835_f15f_b02b_5d52243a6fae["hasArray()"] c4507935_a46f_63d6_724d_0b79ac9627bd -->|calls| 40622caf_e835_f15f_b02b_5d52243a6fae ef722249_476f_4a76_c1e0_45de8d8d8a4a["idx()"] c4507935_a46f_63d6_724d_0b79ac9627bd -->|calls| ef722249_476f_4a76_c1e0_45de8d8d8a4a style c4507935_a46f_63d6_724d_0b79ac9627bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1914–1929
@Override
public int setBytes(int index, InputStream in, int length)
throws IOException {
checkIndex(index, length);
final AbstractByteBuf rootParent = rootParent();
if (rootParent.hasArray()) {
return rootParent.setBytes(idx(index), in, length);
}
byte[] tmp = ByteBufUtil.threadLocalTempArray(length);
int readBytes = in.read(tmp, 0, length);
if (readBytes <= 0) {
return readBytes;
}
setBytes(index, tmp, 0, readBytes);
return readBytes;
}
Domain
Subdomains
Calls
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/AdaptivePoolingAllocator.java.
Where is setBytes() defined?
setBytes() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1914.
What does setBytes() call?
setBytes() calls 2 function(s): hasArray, idx.
What calls setBytes()?
setBytes() is called by 2 function(s): ByteBuf, setCharSequence0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free