MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / findPatternKMP

Method findPatternKMP

app/src/IO/CircularBuffer.h:374–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 */
373template<typename T, Concepts::ByteLike StorageType>
374int IO::CircularBuffer<T, StorageType>::findPatternKMP(const T& pattern, const int pos)
375{
376 return findPatternKMP(pattern, computeKMPTable(pattern), pos);
377}
378
379/**
380 * @brief Pattern search: vectorized memchr paths for the common short delimiters, KMP otherwise.

Callers 3

Calls 4

isEmptyMethod · 0.80
sizeMethod · 0.45
loadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected