store/[org.clojure/clojure "1.8.0"] clj::clojure.core/bytes

Official Documentation

Add notes
Arities
==================================================
   [xs]

Docstring
==================================================
  Casts to bytes[]

Source

(definline bytes
  "Casts to bytes[]"
  {:added "1.1"}
  [xs] `(. clojure.lang.Numbers bytes ~xs))

Example 1

Edit
;; for fast interop
(bytes (byte-array (map (comp byte int) "ascii")))
;; => #<byte[] [B@7a004f62>

(def the-bytes *1)
;; => #'user/the-bytes

(defn get-byte [the-bytes i] (aget the-bytes i))
;; => #'user/get-byte
;; > Reflection warning, NO_SOURCE_PATH:1 - call to aget can't be resolved.

(defn get-byte [the-bytes i] 
  (let [the-bytes (bytes the-bytes)] 
    (aget the-bytes i)))
;; => #'user/get-byte

(get-byte the-bytes 0)
;; => 97

Uses on crossclj