Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

u8vector->u8data converts a u8vector to u8data.

Parameter Description
v u8vector to convert
l Length to convert (<= u8vector-length))

Example

Example 1: Convert some data from u8vector to u8data back to u8vector

> (define myu8vector (u8vector 1 2 3 4 5 6))
> (define myu8data (u8vector->u8data myu8vector))
> (define mynewu8vector (u8data->u8vector myu8data))
> myu8vector
#u8(1 2 3 4 5 6)
> myu8data
(0 . 6)
> mynewu8vector
#u8(1 2 3 4 5 6)
Clone this wiki locally