We can load binary files into MemorySegment and manage them with Arena.
MemorySegment
Arena
See IOUtil.java for more infomation.
try (var is = ClassLoader.getSystemResourceAsStream("path")) { var seg = arena.allocateFrom(JAVA_BYTE, is.readAllBytes()); // use the data... }
There was an error while loading. Please reload this page.