[BREAKGLASS] Append-only mirror of github.com/sparrowwallet/usb4java
The memory for the device descriptor is now allocated in an appropriately sized direct ByteBuffer. The size is calculated directly in native code, to avoid any possible issues with alignment, padding or compilers calculating something different from the expected 18 bytes. This way users don't have to care about freeing the device descriptor, and can easily reuse the same while looping over different devices. |
||
|---|---|---|
| src | ||
| .gitignore | ||
| LICENSE.md | ||
| pom.xml | ||
| README.md | ||
usb4java
USB library for Java based on libusb 1.0
Copyright (C) 2011 Klaus Reimer, k@ailis.de
Copyright (C) 2013 Luca Longinotti, l@longi.li
See LICENSE.md for licensing information.
This library can be used to access USB devices in Java. It is based on the native libusb 1.0 shared library and reflects this API as complete as possible. usb4java also implements the javax.usb (JSR80) API. So you can choose if you want to access the USB devices via the low-level libusb 1.0 API or via the high level javax.usb API.
The native libraries are included in pre-compiled form for Linux, Windows and Mac OS X in 32 and 64 bit versions. The libraries are automatically extracted and loaded so you don't need to care about them.
For more detailed information please visit the usb4java website.