Scheme Programmer's Manual

NAME

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(3) 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(3)

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

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUES
EXAMPLES
COMPATIBILITY
ERRORS
SEE ALSO
STANDARDS
HISTORY
AUTHORS
Return to Main Contents