spliceOut() — netty Function Reference
Architecture documentation for the spliceOut() function in AbstractEpollStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b5e0ce3a_dc95_3eb7_e031_00e22633d8c2["spliceOut()"] 7aa2d14f_5002_748c_af47_dd95afb75a76["SpliceOutTask"] b5e0ce3a_dc95_3eb7_e031_00e22633d8c2 -->|defined in| 7aa2d14f_5002_748c_af47_dd95afb75a76 6f923dac_2ab4_45b4_f2b7_ac945384fb3c["doWriteSingle()"] 6f923dac_2ab4_45b4_f2b7_ac945384fb3c -->|calls| b5e0ce3a_dc95_3eb7_e031_00e22633d8c2 style b5e0ce3a_dc95_3eb7_e031_00e22633d8c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 976–996
public boolean spliceOut() throws Exception {
assert ch.eventLoop().inEventLoop();
try {
int splicedOut = Native.splice(ch.pipeIn.intValue(), -1, ch.socket.intValue(), -1, len);
len -= splicedOut;
if (len == 0) {
if (autoRead) {
// AutoRead was used and we spliced everything so start reading again
config().setAutoRead(true);
}
return true;
}
return false;
} catch (IOException e) {
if (autoRead) {
// AutoRead was used and we spliced everything so start reading again
config().setAutoRead(true);
}
throw e;
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does spliceOut() do?
spliceOut() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is spliceOut() defined?
spliceOut() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 976.
What calls spliceOut()?
spliceOut() is called by 1 function(s): doWriteSingle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free