* added bytevector-s8-set! and bytevector-u8-set!.

This commit is contained in:
Abdulaziz Ghuloum
2007-05-15 13:50:00 -04:00
parent a11fb060f2
commit a809afd0fb
5 changed files with 87 additions and 1 deletions
+9
View File
@@ -25,6 +25,15 @@
(bytevector-u8-ref b1 0)
(bytevector-s8-ref b2 0)
(bytevector-u8-ref b2 0)))]
[(lambda (x) (equal? x '(-126 130 -10 246)))
(let ([b (make-bytevector 16 -127)])
(bytevector-s8-set! b 0 -126)
(bytevector-u8-set! b 1 246)
(list
(bytevector-s8-ref b 0)
(bytevector-u8-ref b 0)
(bytevector-s8-ref b 1)
(bytevector-u8-ref b 1)))]
))