-
Notifications
You must be signed in to change notification settings - Fork 3
Practice 02 Loading Binary Files
squid233 edited this page Jan 3, 2025
·
5 revisions
We can load binary files into MemorySegment
and manage them with Arena
.
See IOUtil.java for more infomation.
try (var is = ClassLoader.getSystemResourceAsStream("path")) {
var seg = arena.allocateFrom(JAVA_BYTE, is.readAllBytes());
// use the data...
}
Copyright (c) 2022-2025 Overrun Organization. In case of any problems with this wiki, please search or create an issue.