Next: bytevectors 8 mutate, Previous: bytevectors 8 list, Up: bytevectors 8 [Index]
Extended subvector procedure replicating the selected subvector “up and down” index space, in both the positive and negative directions.
The call:
(%xsubstring from to 'vu8(0 1 2 3 4 5 6) 3 6)
selects the subvector 3 4 5
and defines the conceptual
bidirectionally–infinite bytevector:
... 4 5 3 4 5 3 4 5 3 4 5 ... ... -5 -4 -3 -2 -1 0 +1 +2 +3 +4 +5 ... ^
that is 3 4 5
repeated in both directions. This function returns
the subvector of this bytevector beginning at index from, and
ending at to.
Note that:
It is an error if start equals past.
Exactly the same as %xsubbytevector-u8
, but the extracted data is
written into the selected subvector of target.
This operation is not defined if (eq? target start)
; we cannot
copy a bytevector on top of itself.
Next: bytevectors 8 mutate, Previous: bytevectors 8 list, Up: bytevectors 8 [Index]