Liking cljdoc? Tell your friends :D

tech.jna


add-library-pathclj

(add-library-path libname pathtype path)

Add a search path. The multimethod (base/find-library pathtype path) is called to expand the pathtype, path into one or more actual paths to attempt. Valid existing pathtypes are

:system - no changes, looks in system paths. :java-library-path - Appends library to all paths in java-library-paths :resource - Uses jna Native/extractFromResourcePath

Add a search path.  The multimethod (base/find-library pathtype path) is called to
  expand the pathtype, path into one or more actual paths to attempt.  Valid existing
  pathtypes are

:system - no changes, looks in system paths.
:java-library-path - Appends library to all paths in java-library-paths
:resource - Uses jna Native/extractFromResourcePath
sourceraw docstring

char-ptr-ptr->string-vecclj

(char-ptr-ptr->string-vec num-strings char-ptr-ptr)

Decode a char** ptr.

Decode a char** ptr.
sourceraw docstring

checknilclj

(checknil value)
source

clear-library-pathsclj

(clear-library-paths libname)

Clear the library search paths for a specific library. Use with care; the default if non found is: [[:system libname] [:java-library-path libname]].

Clear the library search paths for a specific library.
Use with care; the default if non found is:
[[:system libname]
 [:java-library-path libname]].
sourceraw docstring

def-jna-fncljmacro

(def-jna-fn libname fn-name docstring rettype & argpairs)

TVM functions are very regular so the mapping to them can exploit this. Argpair is of type [symbol type-coersion].

TVM functions are very regular so the mapping to them can exploit this.
Argpair is of type [symbol type-coersion].
sourceraw docstring

ensure-ptrclj

(ensure-ptr item)
source

ensure-ptr-ptrclj

(ensure-ptr-ptr item)
source

ensure-typeclj

(ensure-type item-cls item)
source

find-functionclj

(find-function fn-name libname)
source

library-pathsclj

(library-paths libname)

Get the current library search paths for a library.

Get the current library search paths for a library.
sourceraw docstring

load-libraryclj

(load-library libname)
source

mallocclj

(malloc num-bytes)

Malloc a pointer of Y bytes. Track using both resource context and gc system.

Malloc a pointer of Y bytes.  Track using both resource context
and gc system.
sourceraw docstring

malloc-untrackedclj

(malloc-untracked num-bytes)

Malloc pointer of Y bytes. Up to call to call Native/free on result at some point

Malloc pointer of Y bytes.  Up to call to call Native/free on result at some point
sourceraw docstring

map-shared-library-nameclj

(map-shared-library-name libname)

Map a stem to a shared library name in platform specific manner

Map a stem to a shared library name in platform specific manner
sourceraw docstring

PToPtrcljprotocol

->ptr-backing-storeclj

(->ptr-backing-store item)

Conversion to a jna pointer type that points to the data of the object.

Conversion to a jna pointer type that points to the data of the object.
source

set-loaded-library!clj

(set-loaded-library! libname native-library)

Override the search mechanism and set the native library to X.

Override the search mechanism and set the native library to X.
sourceraw docstring

size-tclj

(size-t item)
source

string->ptrclj

(string->ptr data)
source

unsafe-read-byteclj

(unsafe-read-byte byte-ary idx)
source

variable-byte-ptr->stringclj

(variable-byte-ptr->string ptr-addr)

Convert a c-string into a string

Convert a c-string into a string
sourceraw docstring

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

× close