Show / Hide Table of Contents

Delegate SourceCustom.SeekDelegate

A seek delegate.

Namespace: NetVips
Assembly: NetVips.dll
Syntax
public delegate long SourceCustom.SeekDelegate(long offset, SeekOrigin origin)
Parameters
Type Name Description
long offset

A byte offset relative to the origin parameter.

SeekOrigin origin

A value of type SeekOrigin indicating the reference point used to obtain the new position.

Returns
Type Description
long

The new position within the current source.

Remarks

The interface is exactly as Seek(long, SeekOrigin). The handler is given parameters for offset and whence with the same meanings. It also returns the new position within the current source.

Seek handlers are optional. If you do not set one, your source will be treated as unseekable and libvips will do extra caching.

In this article
Back to top Generated by DocFX