Lines Matching refs:cur_idx_
41 : data_(buffer), max_(buffer_len), cur_idx_(0), len_(0), in FileData()
56 if (cur_idx_ + bytes_needed < len_) { in isAvail()
64 if (cur_idx_ != len_) { in isAvail()
66 len_ = len_ - cur_idx_; in isAvail()
67 memcpy(data_, data_ + cur_idx_, len_); in isAvail()
71 cur_idx_ = 0; in isAvail()
72 while (cur_idx_ + bytes_needed >= len_) { in isAvail()
81 return cur_idx_ + bytes_needed < len_; in isAvail()
91 if (data_[cur_idx_] != 'P' || data_[cur_idx_+1] != 's' || in getPss()
92 data_[cur_idx_+2] != 's' || data_[cur_idx_+3] != ':') { in getPss()
94 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss()
96 cur_idx_ += 4; in getPss()
97 while (isAvail(1) && isspace(data_[cur_idx_])) { in getPss()
98 cur_idx_++; in getPss()
102 while (isAvail(1) && isdigit(data_[cur_idx_])) { in getPss()
103 value = value * 10 + data_[cur_idx_] - '0'; in getPss()
104 cur_idx_++; in getPss()
109 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss()