int32_t LFS_search_find_nth_occurrence(const char *filename, const uint8_t *needle, size_t needle_len, uint16_t n, lfs_soff_t *out_offset)
Find the byte offset of the nth occurrence of a string/byte pattern in an LFS file.
Definition littlefs_searching.c:76
int32_t LFS_search_count_occurrences(const char *filename, const uint8_t *needle, size_t needle_len)
Count the number of occurrences of a string/byte pattern in an LFS file.
Definition littlefs_searching.c:13