Next: , Previous: , Up: iklib bytevectors   [Index]


6.26.5 Building subbytevectors

The following bindings are exported by the library (vicare).

Function: subbytevector-u8 bv start
Function: subbytevector-u8 bv start end

Build and return a new bytevector holding the bytes in bv from index start (inclusive) to index end (exclusive). The start and end indexes must be such that:

0 <= start <= end <= (bytevector-length bv)
Function: subbytevector-u8/count bv start count

Build and return a new bytevector holding count bytes in bv from index start (inclusive). The start index and the byte count must be such that:

0 <= start <= start + count <= (bytevector-length bv)
Function: subbytevector-s8 bv start
Function: subbytevector-s8 bv start end

Build and return a new bytevector holding the bytes in bv from index start (inclusive) to index end (exclusive). The start and end indexes must be such that:

0 <= start <= end <= (bytevector-length bv)
Function: subbytevector-s8/count bv start count

Build and return a new bytevector holding count bytes in bv from index start (inclusive). The start index and the byte count must be such that:

0 <= start <= start + count <= (bytevector-length bv)