{"id":19288331,"url":"https://github.com/techascent/tech.jna","last_synced_at":"2025-12-12T01:11:55.926Z","repository":{"id":45241489,"uuid":"154559809","full_name":"techascent/tech.jna","owner":"techascent","description":"java native access bindings","archived":false,"fork":false,"pushed_at":"2024-09-23T15:27:54.000Z","size":163,"stargazers_count":41,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-28T13:40:32.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techascent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-24T19:45:42.000Z","updated_at":"2024-10-06T11:38:11.000Z","dependencies_parsed_at":"2022-08-12T11:50:47.869Z","dependency_job_id":null,"html_url":"https://github.com/techascent/tech.jna","commit_stats":null,"previous_names":["tech-ascent/tech.jna"],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techascent%2Ftech.jna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techascent%2Ftech.jna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techascent%2Ftech.jna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techascent%2Ftech.jna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techascent","download_url":"https://codeload.github.com/techascent/tech.jna/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223888376,"owners_count":17220083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:08:45.314Z","updated_at":"2025-12-12T01:11:55.828Z","avatar_url":"https://github.com/techascent.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tech.jna\n\n[![Clojars Project](https://img.shields.io/clojars/v/techascent/tech.jna.svg)](https://clojars.org/techascent/tech.jna)\n\n\n* [API Documentation](https://techascent.github.io/tech.jna/)\n* For a bit of explanation, checkout our [blog](http://techascent.com/blog/jna-simplifies-your-life.html).\n\n\n\n## Usage\n\n```clojure\n(require '[tech.v3.jna :as jna])\n(jna/def-jna-fn \"c\" memset\n        \"Set byte memory to a value\"\n        com.sun.jna.Pointer ;;void* return value\n        [data identity]     ;;Each argument has a coercer-fn. Pointers can be lots of types.\n        [value int]         ;;read docs for memset\n        [n-bytes jna/size-t])\n        \nuser\u003e (def test-ary (float-array [1 2 3 4]))\n#'user/test-ary\nuser\u003e (vec test-ary)\n[1.0 2.0 3.0 4.0]\nuser\u003e (memset test-ary 0 (* 4 Float/BYTES))\nuser\u003e (vec test-ary)\n[0.0 0.0 0.0 0.0]\n```\n\nCopyright © 2018 TechAscent, LLC\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechascent%2Ftech.jna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechascent%2Ftech.jna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechascent%2Ftech.jna/lists"}