Home / Function/ KmpSearchProcessorFactory() — netty Function Reference

KmpSearchProcessorFactory() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4e92fc4c_1585_228d_a4c9_d39345c0ef94["KmpSearchProcessorFactory()"]
  07025c3a_cfab_445f_92eb_672016d3f28f["KmpSearchProcessorFactory"]
  4e92fc4c_1585_228d_a4c9_d39345c0ef94 -->|defined in| 07025c3a_cfab_445f_92eb_672016d3f28f
  style 4e92fc4c_1585_228d_a4c9_d39345c0ef94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/search/KmpSearchProcessorFactory.java lines 67–81

    KmpSearchProcessorFactory(byte[] needle) {
        this.needle = needle.clone();
        this.jumpTable = new int[needle.length + 1];

        int j = 0;
        for (int i = 1; i < needle.length; i++) {
            while (j > 0 && needle[j] != needle[i]) {
                j = jumpTable[j];
            }
            if (needle[j] == needle[i]) {
                j++;
            }
            jumpTable[i + 1] = j;
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free