make-bytevector
-- r7rs
Definition constructor
;
make-bytevector
(from vonuvoli
);Procedure variants:
((range-length-zero) -> (bytevector-empty))
range-length-zero
;bytevector-empty
;((range-length-zero byte) -> (bytevector-empty))
range-length-zero
;byte
;bytevector-empty
;((range-length-not-zero) -> (bytevector-not-empty))
range-length-not-zero
;bytevector-not-empty
;((range-length-not-zero byte) -> (bytevector-not-empty))
range-length-not-zero
;byte
;bytevector-not-empty
;scheme:base
-- (scheme base)
;scheme
-- (scheme)
;(make-bytevector k) (make-bytevector k byte)
The
make-bytevector
procedure returns a newly allocated bytevector of lengthk
. Ifbyte
is given, then all elements of the bytevector are initialized tobyte
, otherwise the contents of each element are unspecified.(make-bytevector 2 12) ===> #u8(12 12)
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.