SeekableT.seek

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 G_IO_ERROR_CANCELLED will be returned.

template SeekableT(TStruct)
int
seek

Parameters

offset long

a goffset.

type GSeekType

a GSeekType.

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: int

TRUE if successful. If an error has occurred, this function will return FALSE and set error appropriately if present.

Throws

GException on failure.

Meta