Lines Matching refs:i
36 for (int i = 0; i < cnt; i++) { in Crc32Word() local
45 int i; in Crc32() local
49 for (i = 0; i < (length >> 2); i++) { in Crc32()
50 crc = Crc32Word(crc, ((uint32_t *)buffer)[i], 8); in Crc32()
57 for (i*=4; i<length; i++) { in Crc32()
58 word |= buffer[i] << ((i & 0x3) * 8); in Crc32()
147 for (size_t i = 0; i < length; i++) { in Parse() local
151 packet_buffer_.push_back(buffer[i]); in Parse()
155 if (parsing_state_ == ParsingState::Idle && buffer[i] == kSyncByte) { in Parse()
156 packet_buffer_.push_back(buffer[i]); in Parse()
159 && DeserializeWord(&sequence_number_, buffer[i])) { in Parse()
162 && DeserializeWord(&reason_, buffer[i])) { in Parse()
165 uint8_t length = buffer[i]; in Parse()
167 packet_content_.resize(buffer[i]); in Parse()
173 packet_content_[parsing_progress_++] = buffer[i]; in Parse()
180 && DeserializeWord(&crc_, buffer[i])) { in Parse()
181 *bytes_parsed = i + 1; in Parse()