Next: args predefined pathnames, Previous: args predefined vectors, Up: args predefined [Index]
The following bindings are exported by the library (vicare
arguments validation)
.
Succeed if obj is a bytevector.
Succeed if obj is #f
or a bytevector.
Succeed if obj is a bytevector and its length is greater than zero.
Succeed if obj is #f
or a bytevector and its length is
greater than zero.
Succeed if obj is null or a list of bytevectors.
Succeed if idx is a fixnum usable as index (not out of range) for bv, which is expected to be an already validated bytevector.
Succeed if len is a non–negative fixnum usable as bytevector length.
Assuming that bv is an already validated bytevector: succeed if idx is a fixnum usable as index (not out of range) for bv, and count is a fixnum which can be used as characters count in bv starting and idx without going out of range.
In other words: idx and count select a subbytevector of bv.
Assuming that bv is an already validated bytevector: succeed if both start and end are fixnums usable as indexes (not out of range) for bv, and start is less than or equal to end.
In other words: start and end select a subbytevector of bv by specifying inclusive limits.
Assuming that bv is an already validated bytevector: succeed if both start and past are fixnums satisfying the constraints:
0 <= start <= (bytevector-length bv) start <= past <= (bytevector-length bv)
In other words: start and past select a subbytevector of bv by specifying left–inclusive and right–exclusive limits.
Next: args predefined pathnames, Previous: args predefined vectors, Up: args predefined [Index]