Class _IO_FILE

java.lang.Object
io.github.elebras1.flecs._IO_FILE
Direct Known Subclasses:
__FILE, FILE

public class _IO_FILE extends Object
struct _IO_FILE {
    int _flags;
    char *_IO_read_ptr;
    char *_IO_read_end;
    char *_IO_read_base;
    char *_IO_write_base;
    char *_IO_write_ptr;
    char *_IO_write_end;
    char *_IO_buf_base;
    char *_IO_buf_end;
    char *_IO_save_base;
    char *_IO_backup_base;
    char *_IO_save_end;
    struct _IO_marker *_markers;
    struct _IO_FILE *_chain;
    int _fileno;
    int _flags2;
    __off_t _old_offset;
    unsigned short _cur_column;
    signed char _vtable_offset;
    char _shortbuf[1];
    _IO_lock_t *_lock;
    __off64_t _offset;
    struct _IO_codecvt *_codecvt;
    struct _IO_wide_data *_wide_data;
    struct _IO_FILE *_freeres_list;
    void *_freeres_buf;
    size_t __pad5;
    int _mode;
    char _unused2[20];
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • _flags$layout

      public static final ValueLayout.OfInt _flags$layout()
      Layout for field:
      int _flags
      
    • _flags$offset

      public static final long _flags$offset()
      Offset for field:
      int _flags
      
    • _flags

      public static int _flags(MemorySegment struct)
      Getter for field:
      int _flags
      
    • _flags

      public static void _flags(MemorySegment struct, int fieldValue)
      Setter for field:
      int _flags
      
    • _IO_read_ptr$layout

      public static final AddressLayout _IO_read_ptr$layout()
      Layout for field:
      char *_IO_read_ptr
      
    • _IO_read_ptr$offset

      public static final long _IO_read_ptr$offset()
      Offset for field:
      char *_IO_read_ptr
      
    • _IO_read_ptr

      public static MemorySegment _IO_read_ptr(MemorySegment struct)
      Getter for field:
      char *_IO_read_ptr
      
    • _IO_read_ptr

      public static void _IO_read_ptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_read_ptr
      
    • _IO_read_end$layout

      public static final AddressLayout _IO_read_end$layout()
      Layout for field:
      char *_IO_read_end
      
    • _IO_read_end$offset

      public static final long _IO_read_end$offset()
      Offset for field:
      char *_IO_read_end
      
    • _IO_read_end

      public static MemorySegment _IO_read_end(MemorySegment struct)
      Getter for field:
      char *_IO_read_end
      
    • _IO_read_end

      public static void _IO_read_end(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_read_end
      
    • _IO_read_base$layout

      public static final AddressLayout _IO_read_base$layout()
      Layout for field:
      char *_IO_read_base
      
    • _IO_read_base$offset

      public static final long _IO_read_base$offset()
      Offset for field:
      char *_IO_read_base
      
    • _IO_read_base

      public static MemorySegment _IO_read_base(MemorySegment struct)
      Getter for field:
      char *_IO_read_base
      
    • _IO_read_base

      public static void _IO_read_base(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_read_base
      
    • _IO_write_base$layout

      public static final AddressLayout _IO_write_base$layout()
      Layout for field:
      char *_IO_write_base
      
    • _IO_write_base$offset

      public static final long _IO_write_base$offset()
      Offset for field:
      char *_IO_write_base
      
    • _IO_write_base

      public static MemorySegment _IO_write_base(MemorySegment struct)
      Getter for field:
      char *_IO_write_base
      
    • _IO_write_base

      public static void _IO_write_base(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_write_base
      
    • _IO_write_ptr$layout

      public static final AddressLayout _IO_write_ptr$layout()
      Layout for field:
      char *_IO_write_ptr
      
    • _IO_write_ptr$offset

      public static final long _IO_write_ptr$offset()
      Offset for field:
      char *_IO_write_ptr
      
    • _IO_write_ptr

      public static MemorySegment _IO_write_ptr(MemorySegment struct)
      Getter for field:
      char *_IO_write_ptr
      
    • _IO_write_ptr

      public static void _IO_write_ptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_write_ptr
      
    • _IO_write_end$layout

      public static final AddressLayout _IO_write_end$layout()
      Layout for field:
      char *_IO_write_end
      
    • _IO_write_end$offset

      public static final long _IO_write_end$offset()
      Offset for field:
      char *_IO_write_end
      
    • _IO_write_end

      public static MemorySegment _IO_write_end(MemorySegment struct)
      Getter for field:
      char *_IO_write_end
      
    • _IO_write_end

      public static void _IO_write_end(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_write_end
      
    • _IO_buf_base$layout

      public static final AddressLayout _IO_buf_base$layout()
      Layout for field:
      char *_IO_buf_base
      
    • _IO_buf_base$offset

      public static final long _IO_buf_base$offset()
      Offset for field:
      char *_IO_buf_base
      
    • _IO_buf_base

      public static MemorySegment _IO_buf_base(MemorySegment struct)
      Getter for field:
      char *_IO_buf_base
      
    • _IO_buf_base

      public static void _IO_buf_base(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_buf_base
      
    • _IO_buf_end$layout

      public static final AddressLayout _IO_buf_end$layout()
      Layout for field:
      char *_IO_buf_end
      
    • _IO_buf_end$offset

      public static final long _IO_buf_end$offset()
      Offset for field:
      char *_IO_buf_end
      
    • _IO_buf_end

      public static MemorySegment _IO_buf_end(MemorySegment struct)
      Getter for field:
      char *_IO_buf_end
      
    • _IO_buf_end

      public static void _IO_buf_end(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_buf_end
      
    • _IO_save_base$layout

      public static final AddressLayout _IO_save_base$layout()
      Layout for field:
      char *_IO_save_base
      
    • _IO_save_base$offset

      public static final long _IO_save_base$offset()
      Offset for field:
      char *_IO_save_base
      
    • _IO_save_base

      public static MemorySegment _IO_save_base(MemorySegment struct)
      Getter for field:
      char *_IO_save_base
      
    • _IO_save_base

      public static void _IO_save_base(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_save_base
      
    • _IO_backup_base$layout

      public static final AddressLayout _IO_backup_base$layout()
      Layout for field:
      char *_IO_backup_base
      
    • _IO_backup_base$offset

      public static final long _IO_backup_base$offset()
      Offset for field:
      char *_IO_backup_base
      
    • _IO_backup_base

      public static MemorySegment _IO_backup_base(MemorySegment struct)
      Getter for field:
      char *_IO_backup_base
      
    • _IO_backup_base

      public static void _IO_backup_base(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_backup_base
      
    • _IO_save_end$layout

      public static final AddressLayout _IO_save_end$layout()
      Layout for field:
      char *_IO_save_end
      
    • _IO_save_end$offset

      public static final long _IO_save_end$offset()
      Offset for field:
      char *_IO_save_end
      
    • _IO_save_end

      public static MemorySegment _IO_save_end(MemorySegment struct)
      Getter for field:
      char *_IO_save_end
      
    • _IO_save_end

      public static void _IO_save_end(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *_IO_save_end
      
    • _markers$layout

      public static final AddressLayout _markers$layout()
      Layout for field:
      struct _IO_marker *_markers
      
    • _markers$offset

      public static final long _markers$offset()
      Offset for field:
      struct _IO_marker *_markers
      
    • _markers

      public static MemorySegment _markers(MemorySegment struct)
      Getter for field:
      struct _IO_marker *_markers
      
    • _markers

      public static void _markers(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct _IO_marker *_markers
      
    • _chain$layout

      public static final AddressLayout _chain$layout()
      Layout for field:
      struct _IO_FILE *_chain
      
    • _chain$offset

      public static final long _chain$offset()
      Offset for field:
      struct _IO_FILE *_chain
      
    • _chain

      public static MemorySegment _chain(MemorySegment struct)
      Getter for field:
      struct _IO_FILE *_chain
      
    • _chain

      public static void _chain(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct _IO_FILE *_chain
      
    • _fileno$layout

      public static final ValueLayout.OfInt _fileno$layout()
      Layout for field:
      int _fileno
      
    • _fileno$offset

      public static final long _fileno$offset()
      Offset for field:
      int _fileno
      
    • _fileno

      public static int _fileno(MemorySegment struct)
      Getter for field:
      int _fileno
      
    • _fileno

      public static void _fileno(MemorySegment struct, int fieldValue)
      Setter for field:
      int _fileno
      
    • _flags2$layout

      public static final ValueLayout.OfInt _flags2$layout()
      Layout for field:
      int _flags2
      
    • _flags2$offset

      public static final long _flags2$offset()
      Offset for field:
      int _flags2
      
    • _flags2

      public static int _flags2(MemorySegment struct)
      Getter for field:
      int _flags2
      
    • _flags2

      public static void _flags2(MemorySegment struct, int fieldValue)
      Setter for field:
      int _flags2
      
    • _old_offset$layout

      public static final ValueLayout.OfLong _old_offset$layout()
      Layout for field:
      __off_t _old_offset
      
    • _old_offset$offset

      public static final long _old_offset$offset()
      Offset for field:
      __off_t _old_offset
      
    • _old_offset

      public static long _old_offset(MemorySegment struct)
      Getter for field:
      __off_t _old_offset
      
    • _old_offset

      public static void _old_offset(MemorySegment struct, long fieldValue)
      Setter for field:
      __off_t _old_offset
      
    • _cur_column$layout

      public static final ValueLayout.OfShort _cur_column$layout()
      Layout for field:
      unsigned short _cur_column
      
    • _cur_column$offset

      public static final long _cur_column$offset()
      Offset for field:
      unsigned short _cur_column
      
    • _cur_column

      public static short _cur_column(MemorySegment struct)
      Getter for field:
      unsigned short _cur_column
      
    • _cur_column

      public static void _cur_column(MemorySegment struct, short fieldValue)
      Setter for field:
      unsigned short _cur_column
      
    • _vtable_offset$layout

      public static final ValueLayout.OfByte _vtable_offset$layout()
      Layout for field:
      signed char _vtable_offset
      
    • _vtable_offset$offset

      public static final long _vtable_offset$offset()
      Offset for field:
      signed char _vtable_offset
      
    • _vtable_offset

      public static byte _vtable_offset(MemorySegment struct)
      Getter for field:
      signed char _vtable_offset
      
    • _vtable_offset

      public static void _vtable_offset(MemorySegment struct, byte fieldValue)
      Setter for field:
      signed char _vtable_offset
      
    • _shortbuf$layout

      public static final SequenceLayout _shortbuf$layout()
      Layout for field:
      char _shortbuf[1]
      
    • _shortbuf$offset

      public static final long _shortbuf$offset()
      Offset for field:
      char _shortbuf[1]
      
    • _shortbuf

      public static MemorySegment _shortbuf(MemorySegment struct)
      Getter for field:
      char _shortbuf[1]
      
    • _shortbuf

      public static void _shortbuf(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char _shortbuf[1]
      
    • _shortbuf$dimensions

      public static long[] _shortbuf$dimensions()
      Dimensions for array field:
      char _shortbuf[1]
      
    • _shortbuf

      public static byte _shortbuf(MemorySegment struct, long index0)
      Indexed getter for field:
      char _shortbuf[1]
      
    • _shortbuf

      public static void _shortbuf(MemorySegment struct, long index0, byte fieldValue)
      Indexed setter for field:
      char _shortbuf[1]
      
    • _lock$layout

      public static final AddressLayout _lock$layout()
      Layout for field:
      _IO_lock_t *_lock
      
    • _lock$offset

      public static final long _lock$offset()
      Offset for field:
      _IO_lock_t *_lock
      
    • _lock

      public static MemorySegment _lock(MemorySegment struct)
      Getter for field:
      _IO_lock_t *_lock
      
    • _lock

      public static void _lock(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      _IO_lock_t *_lock
      
    • _offset$layout

      public static final ValueLayout.OfLong _offset$layout()
      Layout for field:
      __off64_t _offset
      
    • _offset$offset

      public static final long _offset$offset()
      Offset for field:
      __off64_t _offset
      
    • _offset

      public static long _offset(MemorySegment struct)
      Getter for field:
      __off64_t _offset
      
    • _offset

      public static void _offset(MemorySegment struct, long fieldValue)
      Setter for field:
      __off64_t _offset
      
    • _codecvt$layout

      public static final AddressLayout _codecvt$layout()
      Layout for field:
      struct _IO_codecvt *_codecvt
      
    • _codecvt$offset

      public static final long _codecvt$offset()
      Offset for field:
      struct _IO_codecvt *_codecvt
      
    • _codecvt

      public static MemorySegment _codecvt(MemorySegment struct)
      Getter for field:
      struct _IO_codecvt *_codecvt
      
    • _codecvt

      public static void _codecvt(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct _IO_codecvt *_codecvt
      
    • _wide_data$layout

      public static final AddressLayout _wide_data$layout()
      Layout for field:
      struct _IO_wide_data *_wide_data
      
    • _wide_data$offset

      public static final long _wide_data$offset()
      Offset for field:
      struct _IO_wide_data *_wide_data
      
    • _wide_data

      public static MemorySegment _wide_data(MemorySegment struct)
      Getter for field:
      struct _IO_wide_data *_wide_data
      
    • _wide_data

      public static void _wide_data(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct _IO_wide_data *_wide_data
      
    • _freeres_list$layout

      public static final AddressLayout _freeres_list$layout()
      Layout for field:
      struct _IO_FILE *_freeres_list
      
    • _freeres_list$offset

      public static final long _freeres_list$offset()
      Offset for field:
      struct _IO_FILE *_freeres_list
      
    • _freeres_list

      public static MemorySegment _freeres_list(MemorySegment struct)
      Getter for field:
      struct _IO_FILE *_freeres_list
      
    • _freeres_list

      public static void _freeres_list(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct _IO_FILE *_freeres_list
      
    • _freeres_buf$layout

      public static final AddressLayout _freeres_buf$layout()
      Layout for field:
      void *_freeres_buf
      
    • _freeres_buf$offset

      public static final long _freeres_buf$offset()
      Offset for field:
      void *_freeres_buf
      
    • _freeres_buf

      public static MemorySegment _freeres_buf(MemorySegment struct)
      Getter for field:
      void *_freeres_buf
      
    • _freeres_buf

      public static void _freeres_buf(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *_freeres_buf
      
    • __pad5$layout

      public static final ValueLayout.OfLong __pad5$layout()
      Layout for field:
      size_t __pad5
      
    • __pad5$offset

      public static final long __pad5$offset()
      Offset for field:
      size_t __pad5
      
    • __pad5

      public static long __pad5(MemorySegment struct)
      Getter for field:
      size_t __pad5
      
    • __pad5

      public static void __pad5(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t __pad5
      
    • _mode$layout

      public static final ValueLayout.OfInt _mode$layout()
      Layout for field:
      int _mode
      
    • _mode$offset

      public static final long _mode$offset()
      Offset for field:
      int _mode
      
    • _mode

      public static int _mode(MemorySegment struct)
      Getter for field:
      int _mode
      
    • _mode

      public static void _mode(MemorySegment struct, int fieldValue)
      Setter for field:
      int _mode
      
    • _unused2$layout

      public static final SequenceLayout _unused2$layout()
      Layout for field:
      char _unused2[20]
      
    • _unused2$offset

      public static final long _unused2$offset()
      Offset for field:
      char _unused2[20]
      
    • _unused2

      public static MemorySegment _unused2(MemorySegment struct)
      Getter for field:
      char _unused2[20]
      
    • _unused2

      public static void _unused2(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char _unused2[20]
      
    • _unused2$dimensions

      public static long[] _unused2$dimensions()
      Dimensions for array field:
      char _unused2[20]
      
    • _unused2

      public static byte _unused2(MemorySegment struct, long index0)
      Indexed getter for field:
      char _unused2[20]
      
    • _unused2

      public static void _unused2(MemorySegment struct, long index0, byte fieldValue)
      Indexed setter for field:
      char _unused2[20]
      
    • 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 struct
    • 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()