All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dds.parTextResults Maven / Gradle / Ivy

// Generated by jextract

package dds;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.VarHandle;
import java.nio.ByteOrder;
import java.lang.foreign.*;
import static java.lang.foreign.ValueLayout.*;
/**
 * {@snippet :
 * struct parTextResults {
 *     char  parText[2][128];
 *     _Bool equal;
 * };
 * }
 */
public class parTextResults {

    public static MemoryLayout $LAYOUT() {
        return constants$6.const$2;
    }
    public static MemorySegment parText$slice(MemorySegment seg) {
        return seg.asSlice(0, 256);
    }
    public static VarHandle equal$VH() {
        return constants$6.const$3;
    }
    /**
     * Getter for field:
     * {@snippet :
     * _Bool equal;
     * }
     */
    public static boolean equal$get(MemorySegment seg) {
        return (boolean)constants$6.const$3.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * _Bool equal;
     * }
     */
    public static void equal$set(MemorySegment seg, boolean x) {
        constants$6.const$3.set(seg, x);
    }
    public static boolean equal$get(MemorySegment seg, long index) {
        return (boolean)constants$6.const$3.get(seg.asSlice(index*sizeof()));
    }
    public static void equal$set(MemorySegment seg, long index, boolean x) {
        constants$6.const$3.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 arena) { return RuntimeHelper.asArray(addr, $LAYOUT(), 1, arena); }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy