|
rlib
Convenience library for useful things
|
Result of a successful r_mem_scan_pattern call.
More...
#include <rlib/rmem.h>
Data Fields | |
| rpointer | ptr |
| rpointer | end |
| rsize | tokens |
| RMemScanToken | token [0] |
Result of a successful r_mem_scan_pattern call.
Allocated by r_mem_scan_pattern, owned by the caller - release with r_free. tokens is the parsed-token count; the variable-length token[] holds one RMemScanToken per pattern token, in order.
ptr / end span the full match inside the haystack (closed- open interval).
| rpointer RMemScanResult::end |
One past the last byte of the overall match.
| rpointer RMemScanResult::ptr |
First byte of the overall match.
| RMemScanToken RMemScanResult::token[0] |
Per-token chunks, length tokens.
| rsize RMemScanResult::tokens |
Number of entries in token[].