hdfs::native::hdfsSeek [] [src]

pub unsafe extern fn hdfsSeek(fs: *const hdfsFS, file: *const hdfsFile, desiredPos: tOffset) -> c_int

Seek to given offset in file.

This works only for files opened in read-only mode.

Params

fs The configured filesystem handle. file The file handle. desiredPos Offset into the file to seek into.

Return

@return Returns 0 on success, -1 on error.