Skip to main content

Module editor_search

Module editor_search 

Source
Expand description

filesearchbytes: the next match of a byte pattern in a file, for the hex viewer’s find. The file is read here, in blocks, so one bigger than memory can be searched; each call does a bounded amount of work and says where to go on from, so a search of a very large file never holds a worker.

docs/specs/SPEC_EDITOR_REVAMP_UNIFIED_VIEWERS_2026_10_15.md §4.4.5.

Structs§

Pattern
A pattern of bytes, some of which match any byte.

Functions§

register
filesearchbytes. This computer’s files only, like fileprobe.
search
The search over file (size bytes). Forward: the first match starting at or after from; backward: the last one starting at or before it.