rlib
Convenience library for useful things
Loading...
Searching...
No Matches
RMemScanResult Struct Reference

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]
 

Detailed Description

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).

Field Documentation

◆ end

rpointer RMemScanResult::end

One past the last byte of the overall match.

◆ ptr

rpointer RMemScanResult::ptr

First byte of the overall match.

◆ token

RMemScanToken RMemScanResult::token[0]

Per-token chunks, length tokens.

◆ tokens

rsize RMemScanResult::tokens

Number of entries in token[].


The documentation for this struct was generated from the following file: