getBytes() — netty Function Reference
Architecture documentation for the getBytes() function in CompositeByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ef81abf8_e155_b7e4_fb6e_952e0170c90f["getBytes()"] 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6["CompositeByteBuf"] ef81abf8_e155_b7e4_fb6e_952e0170c90f -->|defined in| 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6 e9920c4e_d91d_be1d_34e0_9c0ddc060f5d["CompositeByteBuf()"] e9920c4e_d91d_be1d_34e0_9c0ddc060f5d -->|calls| ef81abf8_e155_b7e4_fb6e_952e0170c90f e0356282_dad7_04a6_19b9_c66040e8e243["copyTo()"] e0356282_dad7_04a6_19b9_c66040e8e243 -->|calls| ef81abf8_e155_b7e4_fb6e_952e0170c90f 0cc881c8_53ab_8ded_30ad_3bb95c4880ab["nioBufferCount()"] ef81abf8_e155_b7e4_fb6e_952e0170c90f -->|calls| 0cc881c8_53ab_8ded_30ad_3bb95c4880ab 4b8806f4_7999_2590_e28e_7826721fada3["nioBuffers()"] ef81abf8_e155_b7e4_fb6e_952e0170c90f -->|calls| 4b8806f4_7999_2590_e28e_7826721fada3 style ef81abf8_e155_b7e4_fb6e_952e0170c90f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 1127–1141
@Override
public int getBytes(int index, GatheringByteChannel out, int length)
throws IOException {
int count = nioBufferCount();
if (count == 1) {
return out.write(internalNioBuffer(index, length));
} else {
long writtenBytes = out.write(nioBuffers(index, length));
if (writtenBytes > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
} else {
return (int) writtenBytes;
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getBytes() do?
getBytes() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java.
Where is getBytes() defined?
getBytes() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 1127.
What does getBytes() call?
getBytes() calls 2 function(s): nioBufferCount, nioBuffers.
What calls getBytes()?
getBytes() is called by 2 function(s): CompositeByteBuf, copyTo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free