(->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.
(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)
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close