-
Notifications
You must be signed in to change notification settings - Fork 3
Practice 02 Loading Binary Files
squid233 edited this page Apr 6, 2024
·
4 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-2024 Overrun Organization. In case of any problems with this wiki, please search or create an issue.