Homogeneous numeric vectors, see the documentation for SRFI-4
17
In addition to that, the following procedures are also provided:
-
- [procedure] (u8vector->byte-vector U8VECTOR)
-
- [procedure] (s8vector->byte-vector S8VECTOR)
-
- [procedure] (u16vector->byte-vector U16VECTOR)
-
- [procedure] (s16vector->byte-vector S16VECTOR)
-
- [procedure] (u32vector->byte-vector U32VECTOR)
-
- [procedure] (s32vector->byte-vector S32VECTOR)
-
- [procedure] (f32vector->byte-vector F32VECTOR)
-
- [procedure] (f64vector->byte-vector F64VECTOR)
-
Each of these procedures return the contents of the given vector as a
'packed' byte-vector. The byte order in that vector is platform-dependent
(for example little-endian on an Intel processor). The returned
byte-vector shares memory with the contents of the vector.
- [procedure] (byte-vector->u8vector BYTE-VECTOR)
-
- [procedure] (byte-vector->s8vector BYTE-VECTOR)
-
- [procedure] (byte-vector->u16vector BYTE-VECTOR)
-
- [procedure] (byte-vector->s16vector BYTE-VECTOR)
-
- [procedure] (byte-vector->u32vector BYTE-VECTOR)
-
- [procedure] (byte-vector->s32vector BYTE-VECTOR)
-
- [procedure] (byte-vector->f32vector BYTE-VECTOR)
-
- [procedure] (byte-vector->f64vector BYTE-VECTOR)
-
Each of these procedures return a vector where the argument
BYTE-VECTOR is taken as a 'packed' representation of the contents
of the vector. The argument-byte-vector shares memory with the contents
of the vector.