(import (rnrs)) ;R6RS (import (rnrs bytevectors)) ;R6RS
(bytevector->u8-list bytevector) (bytevector->sint-list bytevector endianness size) (bytevector->uint-list bytevector endianness size)
The bytevector->u8-list procedure is the same as bytevector->uint-list with a size of 1. It returns a newly allocated list of the octets of bytevector in the same order.
(let ((b (make-bytevector 4 -127)))
(bytevector->u8-list b))
=> #vu8(129 129 129 129)
(let ([b (u8-list->bytevector
'(#x1 #x2 #x3 #xFF #x1 #x2 #x1 #x2))])
(bytevector->sint-list b (endianness little) #x2))
=> (#x201 #x-FD #x201 #x201)
(let ([b (u8-list->bytevector
'(#x1 #x2 #x3 #xFF #x1 #x2 #x1 #x2))])
(bytevector->uint-list b (endianness little) #x2))
=> (#x201 #xFF03 #x201 #x201)
https://github.com/schemedoc/manpages/.