Method

VipsTargetseek

Declaration [src]

gint64
vips_target_seek (
  VipsTarget* target,
  gint64 offset,
  int whence
)

Description [src]

Seek the target. This behaves exactly as lseek().

Seeking a target sounds weird, but libtiff needs this. This method will fail for targets like pipes.

Parameters

offset gint64
 

Offset to seek to.

whence int
 

Seek relative to beginning, offset, or end.

Return value

Returns: gint64
 

The new offset, -1 on error.