consumeBytes() — netty Function Reference
Architecture documentation for the consumeBytes() function in DefaultHttp2LocalFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 13160351_4f41_3008_7caf_908c2881fdb0["consumeBytes()"] 36ddda9f_3efd_b028_26eb_619b997ea963["DefaultHttp2LocalFlowController"] 13160351_4f41_3008_7caf_908c2881fdb0 -->|defined in| 36ddda9f_3efd_b028_26eb_619b997ea963 fafdcd3b_e1ac_f571_9e49_4a4678015b65["isClosed()"] 13160351_4f41_3008_7caf_908c2881fdb0 -->|calls| fafdcd3b_e1ac_f571_9e49_4a4678015b65 dfeec92d_b9a3_9962_60d3_bafdee4a7557["consumeAllBytes()"] 13160351_4f41_3008_7caf_908c2881fdb0 -->|calls| dfeec92d_b9a3_9962_60d3_bafdee4a7557 a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a["consumeBytes()"] 13160351_4f41_3008_7caf_908c2881fdb0 -->|calls| a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a style 13160351_4f41_3008_7caf_908c2881fdb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 175–193
@Override
public boolean consumeBytes(Http2Stream stream, int numBytes) throws Http2Exception {
assert ctx != null && ctx.executor().inEventLoop();
checkPositiveOrZero(numBytes, "numBytes");
if (numBytes == 0) {
return false;
}
// Streams automatically consume all remaining bytes when they are closed, so just ignore
// if already closed.
if (stream != null && !isClosed(stream)) {
if (stream.id() == CONNECTION_STREAM_ID) {
throw new UnsupportedOperationException("Returning bytes for the connection window is not supported");
}
return consumeAllBytes(state(stream), numBytes);
}
return false;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does consumeBytes() do?
consumeBytes() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is consumeBytes() defined?
consumeBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 175.
What does consumeBytes() call?
consumeBytes() calls 3 function(s): consumeAllBytes, consumeBytes, isClosed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free