mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Remove byte-seq->int8-seq-unsafe
This function is obsolete after the introduction of Int8.from-bytes
This commit is contained in:
parent
dec44984ca
commit
38efca11fa
@ -66,14 +66,6 @@
|
||||
@(Array.unsafe-nth bs 3) @(Array.unsafe-nth bs 2)
|
||||
@(Array.unsafe-nth bs 1) @(Array.unsafe-nth bs 0))))
|
||||
|
||||
(doc byte-seq->int8-seq-unsafe
|
||||
"Interprets a sequence of bytes as a sequence of int8 values.
|
||||
**This operation is unsafe.**")
|
||||
(sig byte-seq->int8-seq (Fn [(Ref (Array Byte) a)] (Array Int)))
|
||||
(defn byte-seq->int8-seq [bs]
|
||||
(let [f (fn [b] (Byte.to-int @b))]
|
||||
(Array.copy-map &f bs)))
|
||||
|
||||
(doc byte-seq->int16-seq-unsafe
|
||||
"Interprets a sequence of bytes as a sequence of int16 values.
|
||||
**This operation is unsafe.**")
|
||||
|
Loading…
Reference in New Issue
Block a user