Logo Search packages:      
Sourcecode: ardour version File versions  Download package

IOStatus Glib::IOChannel::seek ( gint64  offset,
SeekType  type = SEEK_TYPE_SET 
) [inherited]

Seek the I/O channel to a specific position.

Parameters:
offset The offset in bytes from the position specified by type.
type A SeekType. The type Glib::SEEK_TYPE_CUR is only allowed in those cases where a call to set_encoding() is allowed. See the documentation for set_encoding() for details.
Returns:
The status of the operation.
Exceptions:
Glib::IOChannelError 
Glib::ConvertError Replacement for g_io_channel_seek() with the new API.
Parameters:
offset The offset in bytes from the position specified by type .
type A G::SeekType. 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 A location to return an error of type G::IOChannelError.
Returns:
The status of the operation.

Definition at line 612 of file iochannel.cc.

{
  GError *error = 0;
  IOStatus retvalue = ((IOStatus)(g_io_channel_seek_position(gobj(), offset, ((GSeekType)(type)), &(error))));
  if(error) ::Glib::Error::throw_exception(error);
  return retvalue;
}


Generated by  Doxygen 1.6.0   Back to index