nsmcp::BoundedLogScanner method load (public)
<instance of nsmcp::BoundedLogScanner> load bytes
Defined in /usr/local/ns/tcl/nsmcp/log-01-scanner.tcl
Load a bounded in-memory byte chunk for candidate scanning. Reject channel-backed scanners and chunks larger than the configured block bound.
- Parameters:
- bytes (required)
- Raw binary chunk, no larger than the configured block limit.
- Returns:
- The new in-memory byte limit.
- Testcases:
- No testcase defined.
Source code: if {${:channel} ne ""} { error "load requires an in-memory scanner" } if {[string length $bytes]>${:blockBytes}} { error "scanner chunk exceeds its byte bound" } :setBuffer $bytes 0 [string length $bytes] set :limit ${:bufferEnd}XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)