MCPcopy Create free account
hub / github.com/AlexWan0/infini-gram / arraySearch

Function arraySearch

suffixarray_utils.go:106–129  ·  view source on GitHub ↗

Search for the occurrences of a query in the suffix array. Returns the starting and ending positions of the occurrences.

(suffixArray SuffixArrayData, vec TokenArray, query []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

retrieveFunction · 0.85
retrieveNumFunction · 0.85

Calls 5

binarySearchFunction · 0.85
compareSlicesFunction · 0.85
lengthMethod · 0.65
getMethod · 0.65
getSliceMethod · 0.65

Tested by

no test coverage detected