Package org.gnome.glib
Class IOFuncs
java.lang.Object
org.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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theIoCloseCallbackcallback.static interfaceFunctional interface declaration of theIoCreateWatchCallbackcallback.static interfaceFunctional interface declaration of theIoFreeCallbackcallback.static interfaceFunctional interface declaration of theIoGetFlagsCallbackcallback.static interfaceFunctional interface declaration of theIoReadCallbackcallback.static interfaceFunctional interface declaration of theIoSeekCallbackcallback.static interfaceFunctional interface declaration of theIoSetFlagsCallbackcallback.static interfaceFunctional interface declaration of theIoWriteCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionIOFuncs()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 MemoryLayoutThe memory layout of the native struct.voidoverrideIoClose(IOFuncs.IoCloseCallback ioClose, Arena _arena) Write a value in the fieldio_close.voidoverrideIoCreateWatch(IOFuncs.IoCreateWatchCallback ioCreateWatch, Arena _arena) Write a value in the fieldio_create_watch.voidoverrideIoFree(IOFuncs.IoFreeCallback ioFree, Arena _arena) Write a value in the fieldio_free.voidoverrideIoGetFlags(IOFuncs.IoGetFlagsCallback ioGetFlags, Arena _arena) Write a value in the fieldio_get_flags.voidoverrideIoRead(IOFuncs.IoReadCallback ioRead, Arena _arena) Write a value in the fieldio_read.voidoverrideIoSeek(IOFuncs.IoSeekCallback ioSeek, Arena _arena) Write a value in the fieldio_seek.voidoverrideIoSetFlags(IOFuncs.IoSetFlagsCallback ioSetFlags, Arena _arena) Write a value in the fieldio_set_flags.voidoverrideIoWrite(IOFuncs.IoWriteCallback ioWrite, Arena _arena) Write a value in the fieldio_write.Methods inherited from class org.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
-