-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.EasyHandle.SeekStream
Andrew Lambert edited this page Nov 26, 2022
·
12 revisions
libcURL.EasyHandle.SeekStream
Event Function SeekStream(Offset As Integer, Origin As Integer) As Boolean| 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 True to indicate that the seek operation succeeded. If you return False, libcURL is free to work around the problem if possible.
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.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.