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:
parent
aead07b5de
commit
a9ae341105
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user