Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

Architecture documentation for the ByteBuf() function in CompositeByteBuf.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  12435005_caa2_ec6d_e39b_831ac5ea7ab1["ByteBuf()"]
  15d6a895_7cb4_cbcd_0763_faa941b5be8c["CompositeByteBufIterator"]
  12435005_caa2_ec6d_e39b_831ac5ea7ab1 -->|defined in| 15d6a895_7cb4_cbcd_0763_faa941b5be8c
  e9920c4e_d91d_be1d_34e0_9c0ddc060f5d["CompositeByteBuf()"]
  e9920c4e_d91d_be1d_34e0_9c0ddc060f5d -->|calls| 12435005_caa2_ec6d_e39b_831ac5ea7ab1
  5362362a_2ed0_a37e_31c9_a9d1ba602883["numComponents()"]
  12435005_caa2_ec6d_e39b_831ac5ea7ab1 -->|calls| 5362362a_2ed0_a37e_31c9_a9d1ba602883
  9a5f78a5_4775_4fb1_333c_9f62fbab494d["hasNext()"]
  12435005_caa2_ec6d_e39b_831ac5ea7ab1 -->|calls| 9a5f78a5_4775_4fb1_333c_9f62fbab494d
  style 12435005_caa2_ec6d_e39b_831ac5ea7ab1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 2311–2324

        @Override
        public ByteBuf next() {
            if (size != numComponents()) {
                throw new ConcurrentModificationException();
            }
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            try {
                return components[index++].slice();
            } catch (IndexOutOfBoundsException e) {
                throw new ConcurrentModificationException();
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 2311.
What does ByteBuf() call?
ByteBuf() calls 2 function(s): hasNext, numComponents.
What calls ByteBuf()?
ByteBuf() is called by 1 function(s): CompositeByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free