1. Generalized support for datatypes not present as jvm primitive types but which can be store on a 1-to-1 correspondance with a jvm primitive type (so things that need 1,2,4, or 8 bytes to store per element). 2. Unsigned integer support for nio buffers.
(add-datatype->jvm-datatype-conversion src-dtype dst-dtype)(add-safe-jvm-datatype src-datatype safe-jvm-datatype)Add a datatype that can safely container the src datatype. So int16 for an uint8 value, for instance. This will only be queried in the case that the datatype is not a native jvm datatype.
Add a datatype that can safely container the src datatype. So int16 for an uint8 value, for instance. This will only be queried in the case that the datatype is not a native jvm datatype.
(datatype->unchecked-jvm-cast-fn src-dtype dst-dtype val)(make-typed-buffer datatype elem-count-or-seq)(make-typed-buffer datatype elem-count-or-seq options)(typed-buffer? item)If you satisify these protocols then you are a typed buffer needing no wrapping or conversion.
If you satisify these protocols then you are a typed buffer needing no wrapping or conversion.
(unsigned-safe-elem-count-or-seq datatype elem-count-or-seq options)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |