handleWriteCompleteFileRegion() — netty Function Reference
Architecture documentation for the handleWriteCompleteFileRegion() function in AbstractIoUringStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 97d8bd30_3581_f2a7_44ef_aa6255a7a64e["handleWriteCompleteFileRegion()"] 2ef046a1_16aa_1708_4ba7_113c9fa2862e["IoUringStreamUnsafe"] 97d8bd30_3581_f2a7_44ef_aa6255a7a64e -->|defined in| 2ef046a1_16aa_1708_4ba7_113c9fa2862e 883343ab_9c59_4e9f_32b3_d1e64fd67a0e["writeComplete0()"] 883343ab_9c59_4e9f_32b3_d1e64fd67a0e -->|calls| 97d8bd30_3581_f2a7_44ef_aa6255a7a64e style 97d8bd30_3581_f2a7_44ef_aa6255a7a64e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java lines 561–583
private boolean handleWriteCompleteFileRegion(ChannelOutboundBuffer channelOutboundBuffer,
IoUringFileRegion fileRegion, int res, short data) {
try {
if (res == Native.ERRNO_ECANCELED_NEGATIVE) {
return true;
}
int result = res >= 0 ? res : ioResult("io_uring splice", res);
if (result == 0 && fileRegion.count() > 0) {
validateFileRegion(fileRegion.fileRegion, fileRegion.transfered());
return false;
}
int progress = fileRegion.handleResult(result, data);
if (progress == -1) {
// Done with writing
channelOutboundBuffer.remove();
} else if (progress > 0) {
channelOutboundBuffer.progress(progress);
}
} catch (Throwable cause) {
handleWriteError(cause);
}
return true;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does handleWriteCompleteFileRegion() do?
handleWriteCompleteFileRegion() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java.
Where is handleWriteCompleteFileRegion() defined?
handleWriteCompleteFileRegion() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java at line 561.
What calls handleWriteCompleteFileRegion()?
handleWriteCompleteFileRegion() is called by 1 function(s): writeComplete0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free