Lines Matching refs:cur_idx_
37 : data_(buffer), max_(buffer_len), cur_idx_(0), len_(0), in FileData()
52 if (cur_idx_ + bytes_needed < len_) { in isAvail()
60 if (cur_idx_ != len_) { in isAvail()
62 len_ = len_ - cur_idx_; in isAvail()
63 memcpy(data_, data_ + cur_idx_, len_); in isAvail()
67 cur_idx_ = 0; in isAvail()
68 while (cur_idx_ + bytes_needed >= len_) { in isAvail()
77 return cur_idx_ + bytes_needed < len_; in isAvail()
87 if (data_[cur_idx_] != 'P' || data_[cur_idx_+1] != 's' || in getPss()
88 data_[cur_idx_+2] != 's' || data_[cur_idx_+3] != ':') { in getPss()
90 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss()
92 cur_idx_ += 4; in getPss()
93 while (isAvail(1) && isspace(data_[cur_idx_])) { in getPss()
94 cur_idx_++; in getPss()
98 while (isAvail(1) && isdigit(data_[cur_idx_])) { in getPss()
99 value = value * 10 + data_[cur_idx_] - '0'; in getPss()
100 cur_idx_++; in getPss()
105 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss()