nsmcp::BoundedLogScanner method find (public)

 <instance of nsmcp::BoundedLogScanner[i]> find from [ ceiling ]

Defined in /usr/local/ns/tcl/nsmcp/log-01-scanner.tcl

Find the earliest candidate within a fixed byte interval. Use overlapping bounded windows for channels or the current memory chunk; never read beyond the ceiling.

Parameters:
from (required)
Inclusive starting byte offset within the fixed scan interval.
ceiling (optional)
Exclusive upper byte bound; empty uses the configured scanner limit.
Returns:
The candidate byte offset, or -1 when no candidate is found.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: