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

dds.parResults 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 parResults {
 *     char  parScore[2][16];
 *     char  parContractsString[2][128];
 * };
 * }
 */
public class parResults {

    public static MemoryLayout $LAYOUT() {
        return constants$4.const$0;
    }
    public static MemorySegment parScore$slice(MemorySegment seg) {
        return seg.asSlice(0, 32);
    }
    public static MemorySegment parContractsString$slice(MemorySegment seg) {
        return seg.asSlice(32, 256);
    }
    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