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

as-ptrclj

(as-ptr item)
source

c-library-nameclj

(c-library-name)
source

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

create-ptr-ptrclj

(create-ptr-ptr ptr)

Create a pointer to a pointer.

Create a pointer to a pointer.
sourceraw docstring

def-jna-fncljmacro

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

Define a dynamically bound fn. Upon first call, it will attempt to find the function pointer from libname. Argpair is of type [symbol type-coersion], symbol cannot match type-coersion.

Define a dynamically bound fn.  Upon first call, it will attempt to find
the function pointer from libname.
Argpair is of type [symbol type-coersion], symbol cannot match 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

math-library-nameclj

(math-library-name)
source

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.

is-jna-ptr-convertible?clj

(is-jna-ptr-convertible? item)
source

ptr-convertible?clj

(ptr-convertible? item)
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

size-t-refclj

(size-t-ref & [init-value])
source

size-t-ref-typeclj

source

size-t-ref-valueclj

(size-t-ref-value ref-obj)
source

size-t-typeclj

source

string->ptrclj

(string->ptr data)
source

string->ptr-untrackedclj

(string->ptr-untracked data)
source

string->wide-ptrclj

(string->wide-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

wide-ptr->stringclj

(wide-ptr->string wide-ptr)
source

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

× close