|
| 1 | +// Generated by jextract |
| 2 | + |
| 3 | +package org.cryptomator.jfuse.win.amd64.extr; |
| 4 | + |
| 5 | +import java.lang.invoke.MethodHandle; |
| 6 | +import java.lang.invoke.VarHandle; |
| 7 | +import java.nio.ByteOrder; |
| 8 | +import java.lang.foreign.*; |
| 9 | +import static java.lang.foreign.ValueLayout.*; |
| 10 | +public class fuse3_loop_config { |
| 11 | + |
| 12 | + static final GroupLayout $struct$LAYOUT = MemoryLayout.structLayout( |
| 13 | + Constants$root.C_LONG$LAYOUT.withName("clone_fd"), |
| 14 | + Constants$root.C_LONG$LAYOUT.withName("max_idle_threads") |
| 15 | + ).withName("fuse3_loop_config"); |
| 16 | + public static MemoryLayout $LAYOUT() { |
| 17 | + return fuse3_loop_config.$struct$LAYOUT; |
| 18 | + } |
| 19 | + static final VarHandle clone_fd$VH = $struct$LAYOUT.varHandle(MemoryLayout.PathElement.groupElement("clone_fd")); |
| 20 | + public static VarHandle clone_fd$VH() { |
| 21 | + return fuse3_loop_config.clone_fd$VH; |
| 22 | + } |
| 23 | + public static int clone_fd$get(MemorySegment seg) { |
| 24 | + return (int)fuse3_loop_config.clone_fd$VH.get(seg); |
| 25 | + } |
| 26 | + public static void clone_fd$set( MemorySegment seg, int x) { |
| 27 | + fuse3_loop_config.clone_fd$VH.set(seg, x); |
| 28 | + } |
| 29 | + public static int clone_fd$get(MemorySegment seg, long index) { |
| 30 | + return (int)fuse3_loop_config.clone_fd$VH.get(seg.asSlice(index*sizeof())); |
| 31 | + } |
| 32 | + public static void clone_fd$set(MemorySegment seg, long index, int x) { |
| 33 | + fuse3_loop_config.clone_fd$VH.set(seg.asSlice(index*sizeof()), x); |
| 34 | + } |
| 35 | + static final VarHandle max_idle_threads$VH = $struct$LAYOUT.varHandle(MemoryLayout.PathElement.groupElement("max_idle_threads")); |
| 36 | + public static VarHandle max_idle_threads$VH() { |
| 37 | + return fuse3_loop_config.max_idle_threads$VH; |
| 38 | + } |
| 39 | + public static int max_idle_threads$get(MemorySegment seg) { |
| 40 | + return (int)fuse3_loop_config.max_idle_threads$VH.get(seg); |
| 41 | + } |
| 42 | + public static void max_idle_threads$set( MemorySegment seg, int x) { |
| 43 | + fuse3_loop_config.max_idle_threads$VH.set(seg, x); |
| 44 | + } |
| 45 | + public static int max_idle_threads$get(MemorySegment seg, long index) { |
| 46 | + return (int)fuse3_loop_config.max_idle_threads$VH.get(seg.asSlice(index*sizeof())); |
| 47 | + } |
| 48 | + public static void max_idle_threads$set(MemorySegment seg, long index, int x) { |
| 49 | + fuse3_loop_config.max_idle_threads$VH.set(seg.asSlice(index*sizeof()), x); |
| 50 | + } |
| 51 | + public static long sizeof() { return $LAYOUT().byteSize(); } |
| 52 | + public static MemorySegment allocate(SegmentAllocator allocator) { return allocator.allocate($LAYOUT()); } |
| 53 | + public static MemorySegment allocateArray(int len, SegmentAllocator allocator) { |
| 54 | + return allocator.allocate(MemoryLayout.sequenceLayout(len, $LAYOUT())); |
| 55 | + } |
| 56 | + public static MemorySegment ofAddress(MemoryAddress addr, MemorySession session) { return RuntimeHelper.asArray(addr, $LAYOUT(), 1, session); } |
| 57 | +} |
| 58 | + |
| 59 | + |
0 commit comments