W Wrapl, The Programming Language

Libraries:Gtk:Gio:GSeekable

Types

T

T is implemented by streams (implementations of Gtk.Gio.GInputStream.T or Gtk.Gio.GOutputStream.T) that support seeking.



ParentT

Constants

InterfaceInfo : Std.Object.T

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:CanSeek(self @ T) : Std.Symbol.T

Tests if the stream supports the GSeekableIface.

seekable a T.
Returns TRUE if seekable can be seeked. FALSE otherwise.


:CanSeek(_ @ ParentT)

:CanTruncate(self @ T) : Std.Symbol.T

Tests if the stream can be truncated.

seekable a T.
Returns TRUE if the stream can be truncated, FALSE otherwise.


:CanTruncate(_ @ ParentT)

:Seek(self @ T, offset @ Std.Integer.T, type @ Gtk.Glib.GSeekType.T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Std.Symbol.T

Seeks in the stream by the given offset, modified by type.

If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gtk.Gio.GIOErrorEnum.Cancelled will be returned.

seekable a T.
offset a goffset.
type a Gtk.Glib.GSeekType.T.
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
error a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore.
Returns TRUE if successful. If an error has occurred, this function will return FALSE and set error appropriately if present.


:Seek(_ @ ParentT, _ @ Std.Integer.T, _ @ Gtk.Glib.GSeekType.T, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Object.T)

:Tell(self @ T) : Std.Integer.T

Tells the current position within the stream.

seekable a T.
Returns the offset from the beginning of the buffer.


:Tell(_ @ ParentT)

:Truncate(self @ T, offset @ Std.Integer.T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Std.Symbol.T

Truncates a stream with a given offset.

If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gtk.Gio.GIOErrorEnum.Cancelled will be returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.

Virtual: truncate_fn

seekable a T.
offset a goffset.
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
error a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore.
Returns TRUE if successful. If an error has occurred, this function will return FALSE and set error appropriately if present.


:TruncateFn(_ @ ParentT, _ @ Std.Integer.T, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Object.T)