Searched refs:desired_pos (Results 1 – 1 of 1) sorted by relevance
172 int64 desired_pos = static_cast<int64>(offset); in PositionInputStream() local173 if (curr_pos > desired_pos || curr_pos < 0 /* EOF */ || in PositionInputStream()174 (curr_pos == desired_pos && last_read_failed_)) { in PositionInputStream()177 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(desired_pos)); in PositionInputStream()178 } else if (curr_pos < desired_pos) { in PositionInputStream()179 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(desired_pos - curr_pos)); in PositionInputStream()181 DCHECK_EQ(desired_pos, input_stream_->Tell()); in PositionInputStream()