Package org.gnome.gio
Class PollableOutputStream.PollableOutputStreamInterface
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gio.PollableOutputStream.PollableOutputStreamInterface
- All Implemented Interfaces:
Proxy
- Enclosing interface:
PollableOutputStream
The interface for pollable output streams.
The default implementation of canPoll
always returns true
.
The default implementation of writeNonblocking
calls
g_pollable_output_stream_is_writable(), and then calls
g_output_stream_write() if it returns true
. This means you only
need to override it if it is possible that your isWritable
implementation may return true
when the stream is not actually
writable.
The default implementation of writevNonblocking
calls
g_pollable_output_stream_write_nonblocking() for each vector, and converts
its return value and error (if set) to a GPollableReturn
. You should
override this where possible to avoid having to allocate a GError
to return
IOErrorEnum.WOULD_BLOCK
.
-
Constructor Summary
ConstructorDescriptionAllocate a new PollableOutputStreamInterface.Allocate a new PollableOutputStreamInterface.Create a PollableOutputStreamInterface proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideCanPoll
(Arena arena, Method method) Override virtual methodcan_poll
.void
overrideCreateSource
(Arena arena, Method method) Override virtual methodcreate_source
.void
overrideIsWritable
(Arena arena, Method method) Override virtual methodis_writable
.void
overrideWriteNonblocking
(Arena arena, Method method) Override virtual methodwrite_nonblocking
.void
overrideWritevNonblocking
(Arena arena, Method method) Override virtual methodwritev_nonblocking
.Methods inherited from class org.gnome.gobject.TypeInterface
addPrerequisite, getPlugin, instantiatablePrerequisite, peek, peekParent, prerequisites, readGInstanceType, readGType, writeGInstanceType, writeGType
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PollableOutputStreamInterface
Create a PollableOutputStreamInterface proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
PollableOutputStreamInterface
Allocate a new PollableOutputStreamInterface.- Parameters:
arena
- to control the memory allocation scope
-
PollableOutputStreamInterface
public PollableOutputStreamInterface()Allocate a new PollableOutputStreamInterface. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideCanPoll
-
overrideIsWritable
-
overrideCreateSource
-
overrideWriteNonblocking
-
overrideWritevNonblocking
-