Show / Hide Table of Contents

Delegate SourceCustom.SeekDelegate

A seek delegate.

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

A byte offset relative to the origin parameter.

System.IO.SeekOrigin origin

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

Returns
Type Description
System.Int64

The new position within the current source.

Remarks

The interface is exactly as System.IO.Stream.Seek(System.Int64,System.IO.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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX