bytevector - create a bytevector from bytes
LIBRARY
(import (scheme base)) ;R7RS
SYNOPSIS
(bytevector byte ...)
DESCRIPTION
Returns a newly allocated bytevector containing its arguments.
RETURN VALUES
Returns a single bytevector object.
EXAMPLES
(bytevector 1 3 5 1 3 5) => #u8(1 3 5 1 3 5)
(bytevector) => #u8()
COMPATIBILITY
This procedure is absent from R6RS. Use
u8-list->bytevector(3scm)
instead.
ERRORS
It is an error if one of the arguments is not an exact integer
object in the range from 0 to 255 inclusive.
Implementations may signal an error, extend the procedure's
domain of definition to include such arguments,
or fail catastrophically.
SEE ALSO
u8-list->bytevector(3scm)
STANDARDS
R7RS
HISTORY
This procedure first appeared in R7RS.
AUTHORS
This page is part of the
scheme-manpages
project.
It includes materials from the RnRS documents.
More information can be found at
https://github.com/schemedoc/manpages/
.
Markup created by unroff 1.0sc, March 04, 2023.