Liking cljdoc? Tell your friends :D

tech.datatype.base

Datatype library primitives shared between clojurescript and clojure. The datatype system is an extensible system to provide understanding of and access to an undefined set of datatypes and containers that hold contiguous sections of those datatypes.

Datatype library primitives shared between clojurescript and clojure.  The datatype
system is an extensible system to provide understanding of and access to an undefined
set of datatypes and containers that hold contiguous sections of those datatypes.
raw docstring

*cast-table*clj/s

source

*container-conversion-table*clj/s

source

*copy-table*clj/s

source

*datatype->size-map*clj/s

source

*error-on-slow-path*clj/s

source

*unchecked-cast-table*clj/s

source

add-cast-fnclj/s

(add-cast-fn datatype cast-fn)
source

add-container-conversion-fnclj/s

(add-container-conversion-fn src-container-type dst-container-type convert-fn)
source

add-copy-operationclj/s

(add-copy-operation src-container-type
                    dst-container-type
                    src-dtype
                    dst-dtype
                    unchecked?
                    copy-fn)

Add a new copy operation. Note that this is a single point in a 5 dimensional space of operations.

Add a new copy operation.  Note that this is a single point in a 5 dimensional space
of operations.
sourceraw docstring

add-datatype->size-mappingclj/s

(add-datatype->size-mapping datatype byte-size)
source

add-unchecked-cast-fnclj/s

(add-unchecked-cast-fn datatype cast-fn)
source

byte-arraycljs

(byte-array elem-count-or-seq)
source

castclj/s

(cast value datatype)
source

copy!clj/s

(copy! src dest)
(copy! src src-offset dst dst-offset elem-count)
(copy! src src-offset dest dest-offset elem-count options)

copy elem-count src items to dest items. Options may contain unchecked in which you get unchecked operations.

copy elem-count src items to dest items.  Options may contain unchecked in which you
get unchecked operations.
sourceraw docstring

copy-raw-seq->item!clj/s

(copy-raw-seq->item! raw-data-seq ary-target target-offset options)
source

datatype->byte-sizeclj/s

(datatype->byte-size datatype)
source

double-arraycljs

(double-array elem-count-or-seq)
source

ecountclj/s

(ecount item)

Type hinted ecount.

Type hinted ecount.
sourceraw docstring

float-arraycljs

(float-array elem-count-or-seq)
source

generic-copy!clj/s

(generic-copy! item item-offset dest dest-offset elem-count options)

Copy using PAccess protocol. Extremely slow for large buffers.

Copy using PAccess protocol.  Extremely slow for large buffers.
sourceraw docstring

int-arraycljs

(int-array elem-count-or-seq)
source

long-arraycljs

(long-array elem-count-or-seq)
source

PAccessclj/s≠protocol

get-valueclj/s

(get-value item offset)

set-constant!clj/s

(set-constant! item offset value elem-count)

set-value!clj/s

(set-value! item offset value)
source

PCloneclj/s≠protocol

cloneclj/s

(clone item)
source

PContainerTypeclj/s≠protocol

container-typeclj/s

(container-type item)
source

PCopyRawDataclj/s≠protocol

Given a sequence of data copy it as fast as possible into a target item.

Given a sequence of data copy it as fast as possible into a target item.

copy-raw->item!clj/s

(copy-raw->item! raw-data ary-target target-offset options)
sourceraw docstring

PDatatypeclj/s≠protocol

get-datatypeclj/s

(get-datatype item)
source

PPersistentVectorclj/s≠protocol

Conversion to a persistent vector of numbers.

Conversion to a persistent vector of numbers.

->vectorclj/s

(->vector item)
sourceraw docstring

PPrototypeclj/s≠protocol

from-prototypeclj/s

(from-prototype item)
source

shapeclj/s

(shape item)
source

short-arraycljs

(short-array elem-count-or-seq)
source

unchecked-castclj/s

(unchecked-cast value datatype)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close