We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a39f9 commit 08ed283Copy full SHA for 08ed283
src/main/java/org/purejava/linux/Appindicator.java
src/main/java/org/purejava/linux/MemoryAllocator.java
@@ -0,0 +1,9 @@
1
+package org.purejava.linux;
2
+
3
+import java.lang.foreign.MemorySegment;
4
5
+public class MemoryAllocator {
6
+ public static MemorySegment ALLOCATE_FOR(String str) {
7
+ return RuntimeHelper.CONSTANT_ALLOCATOR.allocateUtf8String(str);
8
+ }
9
+}
0 commit comments