in-bytes: use unsafe-bytes-ref

In the same way that `in-vector` uses `unsafe-vector-ref`,
make `in-bytes` expand to a use of `unsafe-bytes-ref`.
This commit is contained in:
Matthew Flatt 2017-01-21 20:58:49 -07:00
parent aead07b5de
commit a9ae341105

View File

@ -1000,7 +1000,7 @@
(make-in-vector-like 'in-string
"string"
#'string?
#'string-length
#'unsafe-string-length
#'in-string
#'string-ref))
@ -1014,9 +1014,9 @@
(make-in-vector-like 'in-bytes
"bytes"
#'bytes?
#'bytes-length
#'unsafe-bytes-length
#'in-bytes
#'bytes-ref))
#'unsafe-bytes-ref))
(define-:vector-like-gen :flvector-gen unsafe-flvector-ref)
;; in-flvector is defined in racket/flonum