Previous: , Up: bytevectors 8   [Index]


27.2.18 Miscellaneous functions

Function: %bytevector-s8-replace bv1 start1 past1 bv2 start2 past2
Function: %bytevector-u8-replace bv1 start1 past1 bv2 start2 past2
Macro: bytevector-s8-replace B1 B2
Macro: bytevector-u8-replace B1 B2

Replace the subvector in B1 with the selected subvector in B2. Return a newly allocated bytevector.

Function: %bytevector-s8-reverse bv start past
Function: %bytevector-u8-reverse bv start past
Function: %bytevector-s8-reverse! bv start past
Function: %bytevector-u8-reverse! bv start past
Macro: bytevector-s8-reverse B
Macro: bytevector-u8-reverse B
Macro: bytevector-s8-reverse! B
Macro: bytevector-u8-reverse! B

Reverse the bytevector. %bytevector-u8-reverse returns the result bytevector and does not alter its bv argument. %bytevector-u8-reverse! is the in–place side–effecting variant.