writeComplete0() — netty Function Reference
Architecture documentation for the writeComplete0() function in IoUringDatagramChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 24996de9_a29f_2a63_cae2_9ba4865b783d["writeComplete0()"] 84fa1210_78f7_d596_04d2_ce3b690b2252["IoUringDatagramChannelUnsafe"] 24996de9_a29f_2a63_cae2_9ba4865b783d -->|defined in| 84fa1210_78f7_d596_04d2_ce3b690b2252 c415803e_78d1_412c_b6ce_0985275eb244["removeFromOutboundBuffer()"] 24996de9_a29f_2a63_cae2_9ba4865b783d -->|calls| c415803e_78d1_412c_b6ce_0985275eb244 style 24996de9_a29f_2a63_cae2_9ba4865b783d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java lines 537–557
@Override
boolean writeComplete0(byte op, int res, int flags, short data, int outstanding) {
ChannelOutboundBuffer outboundBuffer = outboundBuffer();
// Reset the id as this write was completed and so don't need to be cancelled later.
sendmsgHdrs.setId(data, MsgHdrMemoryArray.NO_ID);
sendmsgResArray[data] = res;
// Store the result so we can handle it as soon as we have no outstanding writes anymore.
if (outstanding == 0) {
// All writes are done as part of a batch. Let's remove these from the ChannelOutboundBuffer
boolean writtenSomething = false;
int numWritten = sendmsgHdrs.length();
sendmsgHdrs.clear();
for (int i = 0; i < numWritten; i++) {
writtenSomething |= removeFromOutboundBuffer(
outboundBuffer, sendmsgResArray[i], "io_uring sendmsg");
}
return writtenSomething;
}
return true;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does writeComplete0() do?
writeComplete0() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java.
Where is writeComplete0() defined?
writeComplete0() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java at line 537.
What does writeComplete0() call?
writeComplete0() calls 1 function(s): removeFromOutboundBuffer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free