sbffi icon indicating copy to clipboard operation
sbffi copied to clipboard

Support for void*?

Open brandonros opened this issue 4 years ago • 0 comments

How else would you pass a struct like so?

  libusb_context *ctx = NULL;
  assert(libusb_init(&ctx) == LIBUSB_SUCCESS);
const libusb_init = getNativeFunction(path, 'libusb_init', 'int', [`void*`])

brandonros avatar Aug 28 '20 05:08 brandonros