bytevector-copy
-- r7rs
Definition procedure
;
bytevector-copy
(from vonuvoli
);Procedure variants:
((bytevector) -> (bytevector))
bytevector
;bytevector
;((bytevector range-start) -> (bytevector))
bytevector
;range-start
;bytevector
;((bytevector range-start range-end) -> (bytevector))
bytevector
;range-start
;range-end
;bytevector
;scheme:base
-- (scheme base)
;scheme
-- (scheme)
;(bytevector-copy bytevector) (bytevector-copy bytevector start) (bytevector-copy bytevector start end)
Returns a newly allocated bytevector containing the bytes in
bytevector
betweenstart
andend
.(define a #u8(1 2 3 4 5)) (bytevector-copy a 2 4)) ===> #u8(3 4)
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.