function seek(offset: Number(gint64), type: GLib.SeekType): GLib.IOError {
    // Gjs wrapper for g_io_channel_seek()

Sets the current position in the GLib.IOChannel, similar to the standard library function fseek().


an offset, in bytes, which is added to the position specified by type


the position in the file, which can be GLib.SeekType.cur (the current position), GLib.SeekType.set (the start of the file), or GLib.SeekType.end (the end of the file)


GLib.IOError.none if the operation was successful.