Home / Function/ consumeBytes() — netty Function Reference

consumeBytes() — netty Function Reference

Architecture documentation for the consumeBytes() function in DelegatingDecompressorFrameListener.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9cfe131c_a545_603f_e1f1_9635e11cff4e["consumeBytes()"]
  998fc2ae_88e4_7eb3_dcc9_7f7b916cf359["ConsumedBytesConverter"]
  9cfe131c_a545_603f_e1f1_9635e11cff4e -->|defined in| 998fc2ae_88e4_7eb3_dcc9_7f7b916cf359
  aa3cf3aa_c581_458c_7bfd_76d9c933e628["consumeBytes()"]
  aa3cf3aa_c581_458c_7bfd_76d9c933e628 -->|calls| 9cfe131c_a545_603f_e1f1_9635e11cff4e
  aa3cf3aa_c581_458c_7bfd_76d9c933e628["consumeBytes()"]
  9cfe131c_a545_603f_e1f1_9635e11cff4e -->|calls| aa3cf3aa_c581_458c_7bfd_76d9c933e628
  style 9cfe131c_a545_603f_e1f1_9635e11cff4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java lines 333–349

        @Override
        public boolean consumeBytes(Http2Stream stream, int numBytes) throws Http2Exception {
            Http2Decompressor decompressor = decompressor(stream);
            if (decompressor != null) {
                // Convert the decompressed bytes to compressed (on the wire) bytes.
                numBytes = decompressor.consumeBytes(stream.id(), numBytes);
            }
            try {
                return flowController.consumeBytes(stream, numBytes);
            } catch (Http2Exception e) {
                throw e;
            } catch (Throwable t) {
                // The stream should be closed at this point. We have already changed our state tracking the compressed
                // bytes, and there is no guarantee we can recover if the underlying flow controller throws.
                throw streamError(stream.id(), INTERNAL_ERROR, t, "Error while returning bytes to flow control window");
            }
        }

Domain

Subdomains

Called By

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/DelegatingDecompressorFrameListener.java.
Where is consumeBytes() defined?
consumeBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java at line 333.
What does consumeBytes() call?
consumeBytes() calls 1 function(s): consumeBytes.
What calls consumeBytes()?
consumeBytes() is called by 1 function(s): consumeBytes.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free