Package org.gnome.glib
Class IOFuncs
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.IOFuncs
- All Implemented Interfaces:
Proxy
A table of functions used to handle different types of
GIOChannel
in a generic way.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theIoCloseCallback
callback.static interface
Functional interface declaration of theIoCreateWatchCallback
callback.static interface
Functional interface declaration of theIoFreeCallback
callback.static interface
Functional interface declaration of theIoGetFlagsCallback
callback.static interface
Functional interface declaration of theIoReadCallback
callback.static interface
Functional interface declaration of theIoSeekCallback
callback.static interface
Functional interface declaration of theIoSetFlagsCallback
callback.static interface
Functional interface declaration of theIoWriteCallback
callback. -
Constructor Summary
ConstructorDescriptionIOFuncs()
Allocate a new IOFuncs.Allocate a new IOFuncs.IOFuncs
(MemorySegment address) Create a IOFuncs proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideIoClose
(IOFuncs.IoCloseCallback ioClose, Arena _arena) Write a value in the fieldio_close
.void
overrideIoCreateWatch
(IOFuncs.IoCreateWatchCallback ioCreateWatch, Arena _arena) Write a value in the fieldio_create_watch
.void
overrideIoFree
(IOFuncs.IoFreeCallback ioFree, Arena _arena) Write a value in the fieldio_free
.void
overrideIoGetFlags
(IOFuncs.IoGetFlagsCallback ioGetFlags, Arena _arena) Write a value in the fieldio_get_flags
.void
overrideIoRead
(IOFuncs.IoReadCallback ioRead, Arena _arena) Write a value in the fieldio_read
.void
overrideIoSeek
(IOFuncs.IoSeekCallback ioSeek, Arena _arena) Write a value in the fieldio_seek
.void
overrideIoSetFlags
(IOFuncs.IoSetFlagsCallback ioSetFlags, Arena _arena) Write a value in the fieldio_set_flags
.void
overrideIoWrite
(IOFuncs.IoWriteCallback ioWrite, Arena _arena) Write a value in the fieldio_write
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
IOFuncs
Create a IOFuncs proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
IOFuncs
Allocate a new IOFuncs.- Parameters:
arena
- to control the memory allocation scope
-
IOFuncs
public IOFuncs()Allocate a new IOFuncs. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideIoRead
Write a value in the fieldio_read
.- Parameters:
ioRead
- The new value for the fieldio_read
_arena
- to control the memory allocation scope
-
overrideIoWrite
Write a value in the fieldio_write
.- Parameters:
ioWrite
- The new value for the fieldio_write
_arena
- to control the memory allocation scope
-
overrideIoSeek
Write a value in the fieldio_seek
.- Parameters:
ioSeek
- The new value for the fieldio_seek
_arena
- to control the memory allocation scope
-
overrideIoClose
Write a value in the fieldio_close
.- Parameters:
ioClose
- The new value for the fieldio_close
_arena
- to control the memory allocation scope
-
overrideIoCreateWatch
Write a value in the fieldio_create_watch
.- Parameters:
ioCreateWatch
- The new value for the fieldio_create_watch
_arena
- to control the memory allocation scope
-
overrideIoFree
Write a value in the fieldio_free
.- Parameters:
ioFree
- The new value for the fieldio_free
_arena
- to control the memory allocation scope
-
overrideIoSetFlags
Write a value in the fieldio_set_flags
.- Parameters:
ioSetFlags
- The new value for the fieldio_set_flags
_arena
- to control the memory allocation scope
-
overrideIoGetFlags
Write a value in the fieldio_get_flags
.- Parameters:
ioGetFlags
- The new value for the fieldio_get_flags
_arena
- to control the memory allocation scope
-