Skip to content

libcURL.EasyHandle.SeekStream

Andrew Lambert edited this page Nov 26, 2022 · 12 revisions

libcURL.EasyHandle.SeekStream

Event Signature

 Event Function SeekStream(Offset As Integer, Origin As Integer) As Boolean

Parameters

Name Type Comment
Offset Integer The distance, in bytes, from the Origin.
Origin Integer The point in the stream that Offset is relative to (See remarks.)

Return value

Return True to indicate that the seek operation succeeded. If you return False, libcURL is free to work around the problem if possible.

Remarks

This event handles the SEEKFUNCTION callback. It is raised if libcURL wants to rewind or fast-forward the upload stream.

The Origin parameter is the same as would be passed to the fseek or lseek functions of the C standard library. However, libcURL will only send SEEK_SET, indicating that the origin is the beginning of the stream.

See also

Clone this wiki locally