GLib.IOChannel.prototype.seek_position

function seek_position(offset: Number(gint64), type: GLib.SeekType): GLib.IOStatus {
    // Gjs wrapper for g_io_channel_seek_position()
}
  

Replacement for GLib.IOChannel.prototype.seek with the new API.

offset

The offset in bytes from the position specified by type

type

a GLib.SeekType. The type GLib.SeekType.cur is only allowed in those cases where a call to g_io_channel_set_encoding () is allowed. See the documentation for g_io_channel_set_encoding () for details.

Returns

the status of the operation.