Tech.jna
java native access bindings
Install / Use
/learn @techascent/Tech.jnaREADME
tech.jna
- API Documentation
- For a bit of explanation, checkout our blog.
Usage
(require '[tech.v3.jna :as jna])
(jna/def-jna-fn "c" memset
"Set byte memory to a value"
com.sun.jna.Pointer ;;void* return value
[data identity] ;;Each argument has a coercer-fn. Pointers can be lots of types.
[value int] ;;read docs for memset
[n-bytes jna/size-t])
user> (def test-ary (float-array [1 2 3 4]))
#'user/test-ary
user> (vec test-ary)
[1.0 2.0 3.0 4.0]
user> (memset test-ary 0 (* 4 Float/BYTES))
user> (vec test-ary)
[0.0 0.0 0.0 0.0]
Copyright © 2018 TechAscent, LLC
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
