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

org.purejava.appindicator._GInputMessage Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// 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 _GInputMessage {
 *     struct _GSocketAddress** address;
 *     struct _GInputVector* vectors;
 *     unsigned int num_vectors;
 *     unsigned long bytes_received;
 *     int flags;
 *     struct _GSocketControlMessage*** control_messages;
 *     unsigned int* num_control_messages;
 * };
 * }
 */
public class _GInputMessage {

    public static MemoryLayout $LAYOUT() {
        return constants$695.const$4;
    }
    public static VarHandle address$VH() {
        return constants$695.const$5;
    }
    /**
     * Getter for field:
     * {@snippet :
     * struct _GSocketAddress** address;
     * }
     */
    public static MemorySegment address$get(MemorySegment seg) {
        return (java.lang.foreign.MemorySegment)constants$695.const$5.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * struct _GSocketAddress** address;
     * }
     */
    public static void address$set(MemorySegment seg, MemorySegment x) {
        constants$695.const$5.set(seg, x);
    }
    public static MemorySegment address$get(MemorySegment seg, long index) {
        return (java.lang.foreign.MemorySegment)constants$695.const$5.get(seg.asSlice(index*sizeof()));
    }
    public static void address$set(MemorySegment seg, long index, MemorySegment x) {
        constants$695.const$5.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle vectors$VH() {
        return constants$696.const$0;
    }
    /**
     * Getter for field:
     * {@snippet :
     * struct _GInputVector* vectors;
     * }
     */
    public static MemorySegment vectors$get(MemorySegment seg) {
        return (java.lang.foreign.MemorySegment)constants$696.const$0.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * struct _GInputVector* vectors;
     * }
     */
    public static void vectors$set(MemorySegment seg, MemorySegment x) {
        constants$696.const$0.set(seg, x);
    }
    public static MemorySegment vectors$get(MemorySegment seg, long index) {
        return (java.lang.foreign.MemorySegment)constants$696.const$0.get(seg.asSlice(index*sizeof()));
    }
    public static void vectors$set(MemorySegment seg, long index, MemorySegment x) {
        constants$696.const$0.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle num_vectors$VH() {
        return constants$696.const$1;
    }
    /**
     * Getter for field:
     * {@snippet :
     * unsigned int num_vectors;
     * }
     */
    public static int num_vectors$get(MemorySegment seg) {
        return (int)constants$696.const$1.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * unsigned int num_vectors;
     * }
     */
    public static void num_vectors$set(MemorySegment seg, int x) {
        constants$696.const$1.set(seg, x);
    }
    public static int num_vectors$get(MemorySegment seg, long index) {
        return (int)constants$696.const$1.get(seg.asSlice(index*sizeof()));
    }
    public static void num_vectors$set(MemorySegment seg, long index, int x) {
        constants$696.const$1.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle bytes_received$VH() {
        return constants$696.const$2;
    }
    /**
     * Getter for field:
     * {@snippet :
     * unsigned long bytes_received;
     * }
     */
    public static long bytes_received$get(MemorySegment seg) {
        return (long)constants$696.const$2.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * unsigned long bytes_received;
     * }
     */
    public static void bytes_received$set(MemorySegment seg, long x) {
        constants$696.const$2.set(seg, x);
    }
    public static long bytes_received$get(MemorySegment seg, long index) {
        return (long)constants$696.const$2.get(seg.asSlice(index*sizeof()));
    }
    public static void bytes_received$set(MemorySegment seg, long index, long x) {
        constants$696.const$2.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle flags$VH() {
        return constants$696.const$3;
    }
    /**
     * Getter for field:
     * {@snippet :
     * int flags;
     * }
     */
    public static int flags$get(MemorySegment seg) {
        return (int)constants$696.const$3.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * int flags;
     * }
     */
    public static void flags$set(MemorySegment seg, int x) {
        constants$696.const$3.set(seg, x);
    }
    public static int flags$get(MemorySegment seg, long index) {
        return (int)constants$696.const$3.get(seg.asSlice(index*sizeof()));
    }
    public static void flags$set(MemorySegment seg, long index, int x) {
        constants$696.const$3.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle control_messages$VH() {
        return constants$696.const$4;
    }
    /**
     * Getter for field:
     * {@snippet :
     * struct _GSocketControlMessage*** control_messages;
     * }
     */
    public static MemorySegment control_messages$get(MemorySegment seg) {
        return (java.lang.foreign.MemorySegment)constants$696.const$4.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * struct _GSocketControlMessage*** control_messages;
     * }
     */
    public static void control_messages$set(MemorySegment seg, MemorySegment x) {
        constants$696.const$4.set(seg, x);
    }
    public static MemorySegment control_messages$get(MemorySegment seg, long index) {
        return (java.lang.foreign.MemorySegment)constants$696.const$4.get(seg.asSlice(index*sizeof()));
    }
    public static void control_messages$set(MemorySegment seg, long index, MemorySegment x) {
        constants$696.const$4.set(seg.asSlice(index*sizeof()), x);
    }
    public static VarHandle num_control_messages$VH() {
        return constants$696.const$5;
    }
    /**
     * Getter for field:
     * {@snippet :
     * unsigned int* num_control_messages;
     * }
     */
    public static MemorySegment num_control_messages$get(MemorySegment seg) {
        return (java.lang.foreign.MemorySegment)constants$696.const$5.get(seg);
    }
    /**
     * Setter for field:
     * {@snippet :
     * unsigned int* num_control_messages;
     * }
     */
    public static void num_control_messages$set(MemorySegment seg, MemorySegment x) {
        constants$696.const$5.set(seg, x);
    }
    public static MemorySegment num_control_messages$get(MemorySegment seg, long index) {
        return (java.lang.foreign.MemorySegment)constants$696.const$5.get(seg.asSlice(index*sizeof()));
    }
    public static void num_control_messages$set(MemorySegment seg, long index, MemorySegment x) {
        constants$696.const$5.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); }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy