src/io.cpp
// Only makes sense to call if we created the Writer with modify=true
Only makes sense to call if we created the Writer with modify=true
Only makes sense to call if we created the Writer with modify = true
void Writer::SeekTo(long long int offset) {
  Flush();
  long long int ret = lseek(fd_, offset, SEEK_SET);
  if (ret == -1) {
    fprintf(stderr, "lseek failed, offset %lli, ret %lli, errno %i, fd %i\n",
	    offset, ret, errno, fd_);
    fprintf(stderr, "File: %s\n", filename_.c_str());
    exit(-1);
  }
}
void Writer :: SeekTo ( long long int offset ) { Flush ( ) ; long long int ret = lseek ( fd_ , offset , SEEK_SET ) ; if ( ret == -1 ) { fprintf ( stderr , " \n " , offset , ret , errno , fd_ ) ; fprintf ( stderr , " \n " , filename_ . c_str ( ) ) ; exit ( -1 ) ; } }
Only makes sense to call if we created the Writer with modify=true
Only makes sense to call if we created the Writer with modify = true