(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
(char-ptr-ptr->string-vec num-strings char-ptr-ptr)
Decode a char** ptr.
Decode a char** ptr.
(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]].
(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].
(library-paths libname)
Get the current library search paths for a library.
Get the current library search paths for a library.
(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.
(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
(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
(->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.
(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.
(variable-byte-ptr->string ptr-addr)
Convert a c-string into a string
Convert a c-string into a string
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close