Home / Function/ indexOf() — netty Function Reference

indexOf() — netty Function Reference

Architecture documentation for the indexOf() function in ReplayingDecoderByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f40e73b7_2045_9888_98c1_30151bb10470["indexOf()"]
  2f1efe3a_641f_b308_f73f_447128c0e44e["ReplayingDecoderByteBuf"]
  f40e73b7_2045_9888_98c1_30151bb10470 -->|defined in| 2f1efe3a_641f_b308_f73f_447128c0e44e
  81568e7c_2ce5_fda3_33ff_2c665cd1622b["writerIndex()"]
  f40e73b7_2045_9888_98c1_30151bb10470 -->|calls| 81568e7c_2ce5_fda3_33ff_2c665cd1622b
  style f40e73b7_2045_9888_98c1_30151bb10470 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java lines 366–377

    @Override
    public int indexOf(int fromIndex, int toIndex, byte value) {
        if (fromIndex == toIndex) {
            return -1;
        }

        if (Math.max(fromIndex, toIndex) > buffer.writerIndex()) {
            throw REPLAY;
        }

        return buffer.indexOf(fromIndex, toIndex, value);
    }

Domain

Subdomains

Frequently Asked Questions

What does indexOf() do?
indexOf() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java.
Where is indexOf() defined?
indexOf() is defined in codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java at line 366.
What does indexOf() call?
indexOf() calls 1 function(s): writerIndex.

Analyze Your Own Codebase

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

Try Supermodel Free