mongoc_gridfs_file_seek()

Synopsis

int
mongoc_gridfs_file_seek (mongoc_gridfs_file_t *file,
                         uint64_t              delta,
                         int                   whence);

Parameters

file

A mongoc_gridfs_file_t.

delta

The relative offset to whence.

whence

A fseek() style whence such as SEEK_SET, SEEK_CUR, or SEEK_END.

Description

This function seeks within the underlying file by mimicing fseek().

Returns

Returns 0 if successful, otherwise -1 and errno is set.