Class _GMutex

java.lang.Object
app.photofox.vipsffm.jextract._GMutex
Direct Known Subclasses:
GMutex

public class _GMutex extends Object
union _GMutex {
    gpointer p;
    guint i[2];
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this union
    • p$layout

      public static final AddressLayout p$layout()
      Layout for field:
      gpointer p
      
    • p$offset

      public static final long p$offset()
      Offset for field:
      gpointer p
      
    • p

      public static MemorySegment p(MemorySegment union)
      Getter for field:
      gpointer p
      
    • p

      public static void p(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      gpointer p
      
    • i$layout

      public static final SequenceLayout i$layout()
      Layout for field:
      guint i[2]
      
    • i$offset

      public static final long i$offset()
      Offset for field:
      guint i[2]
      
    • i

      public static MemorySegment i(MemorySegment union)
      Getter for field:
      guint i[2]
      
    • i

      public static void i(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      guint i[2]
      
    • i$dimensions

      public static long[] i$dimensions()
      Dimensions for array field:
      guint i[2]
      
    • i

      public static int i(MemorySegment union, long index0)
      Indexed getter for field:
      guint i[2]
      
    • i

      public static void i(MemorySegment union, long index0, int fieldValue)
      Indexed setter for field:
      guint i[2]
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this union
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()