doReadBytes() — netty Function Reference
Architecture documentation for the doReadBytes() function in OioByteStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5459b100_ac86_863c_cbca_3f46245c2103["doReadBytes()"] 462ee44c_01dd_0264_afa1_574b02e134cf["OioByteStreamChannel"] 5459b100_ac86_863c_cbca_3f46245c2103 -->|defined in| 462ee44c_01dd_0264_afa1_574b02e134cf 707bdd56_2ea2_7d74_c5af_b688b8d21212["available()"] 5459b100_ac86_863c_cbca_3f46245c2103 -->|calls| 707bdd56_2ea2_7d74_c5af_b688b8d21212 style 5459b100_ac86_863c_cbca_3f46245c2103 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java lines 107–112
@Override
protected int doReadBytes(ByteBuf buf) throws Exception {
final RecvByteBufAllocator.Handle allocHandle = unsafe().recvBufAllocHandle();
allocHandle.attemptedBytesRead(Math.max(1, Math.min(available(), buf.maxWritableBytes())));
return buf.writeBytes(is, allocHandle.attemptedBytesRead());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does doReadBytes() do?
doReadBytes() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java.
Where is doReadBytes() defined?
doReadBytes() is defined in transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java at line 107.
What does doReadBytes() call?
doReadBytes() calls 1 function(s): available.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free