Method

GLibIOChannelseek_position

Declaration

GIOStatus
g_io_channel_seek_position (
  GIOChannel* channel,
  gint64 offset,
  GSeekType type,
  GError** error
)

Description

Replacement for g_io_channel_seek() with the new API.

Parameters

offset gint64
 

The offset in bytes from the position specified by type.

type GSeekType
 

A GSeekType. The type G_SEEK_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.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GIOStatus
 

The status of the operation.