nsmcp::accessScanBudget (private)

 nsmcp::accessScanBudget value

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Parse and validate a byte budget used by access scanning. @return Budget in bytes.

Parameters:
value (required)

Partial Call Graph (max 5 caller/called nodes):

Testcases:
No testcase defined.
Source code:
    # Already-converted integers need no second unit conversion. Some cores
    # handle typed wide integers differently from string size specifications.
    if {[string is entier -strict $value]} {
        set bytes $value
    } elseif {[catch {
        ns_baseunit -size $value
    } bytes]} {
        error "accessScanMaxBytes must be a positive size within the signed 64-bit byte range"
    }
    if {![string is entier -strict $bytes] || $bytes<1 || $bytes>9223372036854775807} {
        error "accessScanMaxBytes must be a positive size within the signed 64-bit byte range"
    }
    return [expr {wide($bytes)}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: