PetscErrorCode PetscBinarySeek(int fd,off_t off,PetscBinarySeekType whence,off_t *offset)Not Collective
fd | - the file | |
off | - number of bytes to move. Use PETSC_BINARY_INT_SIZE, PETSC_BINARY_SCALAR_SIZE, etc. in your calculation rather than sizeof() to compute byte lengths. | |
whence | - if PETSC_BINARY_SEEK_SET then off is an absolute location in the file if PETSC_BINARY_SEEK_CUR then off is an offset from the current location if PETSC_BINARY_SEEK_END then off is an offset from the end of file |