handleResult() — netty Function Reference
Architecture documentation for the handleResult() function in IoUringFileRegion.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 08686ee3_0989_cbf4_6868_2a6da6c97cdc["handleResult()"] c96b81c5_ea33_13b2_52db_63502e2f3044["IoUringFileRegion"] 08686ee3_0989_cbf4_6868_2a6da6c97cdc -->|defined in| c96b81c5_ea33_13b2_52db_63502e2f3044 bc778394_4736_dc59_67b3_30ae07ee14d0["transferred()"] 08686ee3_0989_cbf4_6868_2a6da6c97cdc -->|calls| bc778394_4736_dc59_67b3_30ae07ee14d0 b11e4b38_b4b8_0290_08c2_c03a41d75b16["count()"] 08686ee3_0989_cbf4_6868_2a6da6c97cdc -->|calls| b11e4b38_b4b8_0290_08c2_c03a41d75b16 style 08686ee3_0989_cbf4_6868_2a6da6c97cdc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFileRegion.java lines 80–102
int handleResult(int result, short data) {
assert result >= 0;
if (data == SPLICE_TO_PIPE) {
// This is the result for spliceToPipe
transferred += result;
pipeLen = result;
return 0;
}
if (data == SPLICE_TO_SOCKET) {
// This is the result for spliceToSocket
pipeLen -= result;
assert pipeLen >= 0;
if (pipeLen == 0) {
if (transferred() >= count()) {
// We transferred the whole file
return -1;
}
pipeLen = -1;
}
return result;
}
throw new IllegalArgumentException("Unknown data: " + data);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does handleResult() do?
handleResult() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFileRegion.java.
Where is handleResult() defined?
handleResult() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFileRegion.java at line 80.
What does handleResult() call?
handleResult() calls 2 function(s): count, transferred.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free