Class IOFuncs

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class IOFuncs extends ProxyInstance
A table of functions used to handle different types of GIOChannel in a generic way.
  • Constructor Details

    • IOFuncs

      public IOFuncs(MemorySegment address)
      Create a IOFuncs proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • IOFuncs

      public IOFuncs(Arena arena)
      Allocate a new IOFuncs.
      Parameters:
      arena - to control the memory allocation scope
    • IOFuncs

      public IOFuncs()
      Allocate a new IOFuncs. The memory is allocated with Arena.ofAuto().
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideIoRead

      public void overrideIoRead(IOFuncs.IoReadCallback ioRead, Arena _arena)
      Write a value in the field io_read.
      Parameters:
      ioRead - The new value for the field io_read
      _arena - to control the memory allocation scope
    • overrideIoWrite

      public void overrideIoWrite(IOFuncs.IoWriteCallback ioWrite, Arena _arena)
      Write a value in the field io_write.
      Parameters:
      ioWrite - The new value for the field io_write
      _arena - to control the memory allocation scope
    • overrideIoSeek

      public void overrideIoSeek(IOFuncs.IoSeekCallback ioSeek, Arena _arena)
      Write a value in the field io_seek.
      Parameters:
      ioSeek - The new value for the field io_seek
      _arena - to control the memory allocation scope
    • overrideIoClose

      public void overrideIoClose(IOFuncs.IoCloseCallback ioClose, Arena _arena)
      Write a value in the field io_close.
      Parameters:
      ioClose - The new value for the field io_close
      _arena - to control the memory allocation scope
    • overrideIoCreateWatch

      public void overrideIoCreateWatch(IOFuncs.IoCreateWatchCallback ioCreateWatch, Arena _arena)
      Write a value in the field io_create_watch.
      Parameters:
      ioCreateWatch - The new value for the field io_create_watch
      _arena - to control the memory allocation scope
    • overrideIoFree

      public void overrideIoFree(IOFuncs.IoFreeCallback ioFree, Arena _arena)
      Write a value in the field io_free.
      Parameters:
      ioFree - The new value for the field io_free
      _arena - to control the memory allocation scope
    • overrideIoSetFlags

      public void overrideIoSetFlags(IOFuncs.IoSetFlagsCallback ioSetFlags, Arena _arena)
      Write a value in the field io_set_flags.
      Parameters:
      ioSetFlags - The new value for the field io_set_flags
      _arena - to control the memory allocation scope
    • overrideIoGetFlags

      public void overrideIoGetFlags(IOFuncs.IoGetFlagsCallback ioGetFlags, Arena _arena)
      Write a value in the field io_get_flags.
      Parameters:
      ioGetFlags - The new value for the field io_get_flags
      _arena - to control the memory allocation scope