Is there a known way to convert a long integer into a graal C VoidPointer type?
My hacking about produced a compiler error and someone has had to do this by now.
@chris441 You might have some luck asking in the GraalVM slack community
◦ org.graalvm.word.WordFactory
static <T extends PointerBase> T pointer(long val) Unsafe conversion from a Java long value to a pointer.
That won't work at least at the repl.
It relies on the compiler being loaded...perhaps it will work during compilation though. =
most things in that C api probably won’t work at repl
they are mostly word, not object, so not good with clojure
you will have to wrap them
Thanks, that is really helpful. Testing it out.