Interface ByteIndexer

All Known Implementing Classes:
KMPByteIndexer, SingleByteIndexer

public interface ByteIndexer
ByteIndexer
Version:
0.0.1
Author:
scx567888
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    支持跨 chunk 的回溯匹配, 因此返回值可能为负数 若未匹配到 请返回 Integer.MIN_VALUE
  • Method Details

    • indexOf

      int indexOf(ByteChunk chunk)
      支持跨 chunk 的回溯匹配, 因此返回值可能为负数 若未匹配到 请返回 Integer.MIN_VALUE
      Parameters:
      chunk - chunk
      Returns:
      匹配的索引位置