lastBytesRead() — netty Function Reference
Architecture documentation for the lastBytesRead() function in DefaultMaxBytesRecvByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d669f233_74d2_ef76_ccf1_ffe90d3c18f5["lastBytesRead()"] 410f1c17_73e1_5fa8_7547_955af2229cf5["HandleImpl"] d669f233_74d2_ef76_ccf1_ffe90d3c18f5 -->|defined in| 410f1c17_73e1_5fa8_7547_955af2229cf5 style d669f233_74d2_ef76_ccf1_ffe90d3c18f5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/DefaultMaxBytesRecvByteBufAllocator.java lines 67–73
@Override
public void lastBytesRead(int bytes) {
lastBytesRead = bytes;
// Ignore if bytes is negative, the interface contract states it will be detected externally after call.
// The value may be "invalid" after this point, but it doesn't matter because reading will be stopped.
bytesToRead -= bytes;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lastBytesRead() do?
lastBytesRead() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultMaxBytesRecvByteBufAllocator.java.
Where is lastBytesRead() defined?
lastBytesRead() is defined in transport/src/main/java/io/netty/channel/DefaultMaxBytesRecvByteBufAllocator.java at line 67.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free