Liking cljdoc? Tell your friends :D

tech.datatype.jna


->typed-pointerclj

(->typed-pointer item)

Creates a typed-pointer object. Implement PToPtr, mp/PElementCount, and dtype-base/get-datatype and we convert your thing to a typed pointer.

Creates a typed-pointer object.
  Implement PToPtr, mp/PElementCount, and dtype-base/get-datatype
and we convert your thing to a typed pointer.
sourceraw docstring

array-copy-fnscljmacro

(array-copy-fns)
source

as-typed-pointerclj

(as-typed-pointer item)

Get something substitutable as a typed-pointer. Implement all the protocols necessary to be tech.datatype.java-unsigned/typed-buffer and PToPtr and you can be considered a typed-pointer, or if you implemented unsigned/typed-buffer? and your backing store is a direct nio buffer (.isDirect returns true)

Get something substitutable as a typed-pointer.  Implement all the protocols
necessary to be tech.datatype.java-unsigned/typed-buffer *and* PToPtr and you can be
considered a typed-pointer, *or* if you implemented unsigned/typed-buffer? and your
backing store is a direct nio buffer (.isDirect returns true)
sourceraw docstring

buffer-as-typed-pointerclj

(buffer-as-typed-pointer item)

Return a typed pointer that shares the backing store with the original direct pointer.

Return a typed pointer that shares the backing store with the original direct
pointer.
sourceraw docstring

make-jna-pointerclj

(make-jna-pointer address)

Use with care...

Use with care...
sourceraw docstring

make-typed-pointerclj

(make-typed-pointer datatype elem-count-or-seq & [options])

Make a typed pointer. Aside from the usual option :unchecked?, there is a new option :untracked? which means to explicitly avoid using the resource or gc tracking system to track this pointer.

Make a typed pointer.  Aside from the usual option :unchecked?, there is a new option
:untracked? which means to explicitly avoid using the resource or gc tracking system
to track this pointer.
sourceraw docstring

offset-pointerclj

(offset-pointer ptr offset)
source

pointer->addressclj

(pointer->address ptr)
source

possible-fast-pathclj

source

typed-data-settercljmacro

(typed-data-setter datatype set-fn ptr item-seq)
source

typed-pointer->ptrclj

(typed-pointer->ptr typed-pointer)
source

typed-pointer?clj

(typed-pointer? item)

True if you are can be substituted for typed pointers directly.

True if you are can be substituted for typed pointers directly.
sourceraw docstring

unsafe-address->typed-pointerclj

(unsafe-address->typed-pointer address byte-len datatype)
source

unsafe-free-ptrclj

(unsafe-free-ptr ptr)
source

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

× close