Home / Function/ process() — netty Function Reference

process() — netty Function Reference

Architecture documentation for the process() function in KmpSearchProcessorFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a5b9168b_6c50_73c6_9e11_09b6ada55541["process()"]
  0d63c09d_1a8c_9c20_539e_1ce7bf8f3999["Processor"]
  a5b9168b_6c50_73c6_9e11_09b6ada55541 -->|defined in| 0d63c09d_1a8c_9c20_539e_1ce7bf8f3999
  style a5b9168b_6c50_73c6_9e11_09b6ada55541 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/search/KmpSearchProcessorFactory.java lines 45–59

        @Override
        public boolean process(byte value) {
            while (currentPosition > 0 && PlatformDependent.getByte(needle, currentPosition) != value) {
                currentPosition = PlatformDependent.getInt(jumpTable, currentPosition);
            }
            if (PlatformDependent.getByte(needle, currentPosition) == value) {
                currentPosition++;
            }
            if (currentPosition == needle.length) {
                currentPosition = PlatformDependent.getInt(jumpTable, currentPosition);
                return false;
            }

            return true;
        }

Domain

Subdomains

Frequently Asked Questions

What does process() do?
process() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/search/KmpSearchProcessorFactory.java.
Where is process() defined?
process() is defined in buffer/src/main/java/io/netty/buffer/search/KmpSearchProcessorFactory.java at line 45.

Analyze Your Own Codebase

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

Try Supermodel Free