![JAR search and dependency download from the Maven repository](/logo.png)
org.purejava.appindicator._GStaticRecMutex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libappindicator-gtk3-java-full Show documentation
Show all versions of libappindicator-gtk3-java-full Show documentation
Java bindings for libappindicator-gtk3 in 100% pure Java
// Generated by jextract
package org.purejava.appindicator;
import java.lang.foreign.Arena;
import java.lang.foreign.MemoryLayout;
import java.lang.foreign.MemorySegment;
import java.lang.foreign.SegmentAllocator;
import java.lang.invoke.VarHandle;
/**
* {@snippet :
* struct _GStaticRecMutex {
* struct GStaticMutex mutex;
* unsigned int depth;
* union unused;
* };
* }
*/
public class _GStaticRecMutex {
public static MemoryLayout $LAYOUT() {
return constants$537.const$4;
}
public static MemorySegment mutex$slice(MemorySegment seg) {
return seg.asSlice(0, 56);
}
public static VarHandle depth$VH() {
return constants$537.const$5;
}
/**
* Getter for field:
* {@snippet :
* unsigned int depth;
* }
*/
public static int depth$get(MemorySegment seg) {
return (int)constants$537.const$5.get(seg);
}
/**
* Setter for field:
* {@snippet :
* unsigned int depth;
* }
*/
public static void depth$set(MemorySegment seg, int x) {
constants$537.const$5.set(seg, x);
}
public static int depth$get(MemorySegment seg, long index) {
return (int)constants$537.const$5.get(seg.asSlice(index*sizeof()));
}
public static void depth$set(MemorySegment seg, long index, int x) {
constants$537.const$5.set(seg.asSlice(index*sizeof()), x);
}
/**
* {@snippet :
* union {
* unsigned long owner;
* double dummy;
* };
* }
*/
public static final class unused {
// Suppresses default constructor, ensuring non-instantiability.
private unused() {}
public static MemoryLayout $LAYOUT() {
return constants$538.const$0;
}
public static VarHandle owner$VH() {
return constants$538.const$1;
}
/**
* Getter for field:
* {@snippet :
* unsigned long owner;
* }
*/
public static long owner$get(MemorySegment seg) {
return (long)constants$538.const$1.get(seg);
}
/**
* Setter for field:
* {@snippet :
* unsigned long owner;
* }
*/
public static void owner$set(MemorySegment seg, long x) {
constants$538.const$1.set(seg, x);
}
public static long owner$get(MemorySegment seg, long index) {
return (long)constants$538.const$1.get(seg.asSlice(index*sizeof()));
}
public static void owner$set(MemorySegment seg, long index, long x) {
constants$538.const$1.set(seg.asSlice(index*sizeof()), x);
}
public static VarHandle dummy$VH() {
return constants$538.const$2;
}
/**
* Getter for field:
* {@snippet :
* double dummy;
* }
*/
public static double dummy$get(MemorySegment seg) {
return (double)constants$538.const$2.get(seg);
}
/**
* Setter for field:
* {@snippet :
* double dummy;
* }
*/
public static void dummy$set(MemorySegment seg, double x) {
constants$538.const$2.set(seg, x);
}
public static double dummy$get(MemorySegment seg, long index) {
return (double)constants$538.const$2.get(seg.asSlice(index*sizeof()));
}
public static void dummy$set(MemorySegment seg, long index, double x) {
constants$538.const$2.set(seg.asSlice(index*sizeof()), x);
}
public static long sizeof() { return $LAYOUT().byteSize(); }
public static MemorySegment allocate(SegmentAllocator allocator) { return allocator.allocate($LAYOUT()); }
public static MemorySegment allocateArray(long len, SegmentAllocator allocator) {
return allocator.allocate(MemoryLayout.sequenceLayout(len, $LAYOUT()));
}
public static MemorySegment ofAddress(MemorySegment addr, Arena scope) { return RuntimeHelper.asArray(addr, $LAYOUT(), 1, scope); }
}
public static MemorySegment unused$slice(MemorySegment seg) {
return seg.asSlice(64, 8);
}
public static long sizeof() { return $LAYOUT().byteSize(); }
public static MemorySegment allocate(SegmentAllocator allocator) { return allocator.allocate($LAYOUT()); }
public static MemorySegment allocateArray(long len, SegmentAllocator allocator) {
return allocator.allocate(MemoryLayout.sequenceLayout(len, $LAYOUT()));
}
public static MemorySegment ofAddress(MemorySegment addr, Arena scope) { return RuntimeHelper.asArray(addr, $LAYOUT(), 1, scope); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy