| .TH "ZIP_SOURCE_SEEK_COMPUTE_OFFSET" "3" "November 13, 2014" "NiH" "Library Functions Manual" |
| \fBzip_source_seek_compute_offset\fR |
| \- validate arguments and compute offset |
| \fBzip_source_seek_compute_offset\fR(\fIzip_uint64_t\ offset\fR, \fIzip_uint64_t\ length\fR, \fIvoid\ *data\fR, \fIzip_uint64_t\ data_length\fR, \fIzip_error_t\ *error\fR); |
| Use this function to compute the offset for a |
| \fRZIP_SOURCE_SEEK_WRITE\fR |
| are the arguments to the source callback, |
| is the current offset and |
| is the length of the source data or, for |
| \fRZIP_SOURCE_SEEK_WRITE\fR, |
| the amount of data written. |
| On success, it returns the new offset, on error it returns \-1 and |
| \fBzip_source_seek_compute_offset\fR() |
| One of the arguments is invalid or the seek would place the offset |
| Dieter Baron <\fIdillo@nih.at\fR> |
| Thomas Klausner <\fItk@giga.or.at\fR> |