Lines Matching refs:expected_size
245 uint32_t expected_size = header_->file_size_; in CheckHeader() local
246 if (size_ != expected_size) { in CheckHeader()
247 ErrorStringPrintf("Bad file size (%zd, expected %ud)", size_, expected_size); in CheckHeader()
255 adler_checksum = adler32(adler_checksum, non_sum_ptr, expected_size - non_sum); in CheckHeader()
1277 uint32_t expected_size; in CheckIntraIdSection() local
1283 expected_size = header_->string_ids_size_; in CheckIntraIdSection()
1287 expected_size = header_->type_ids_size_; in CheckIntraIdSection()
1291 expected_size = header_->proto_ids_size_; in CheckIntraIdSection()
1295 expected_size = header_->field_ids_size_; in CheckIntraIdSection()
1299 expected_size = header_->method_ids_size_; in CheckIntraIdSection()
1303 expected_size = header_->class_defs_size_; in CheckIntraIdSection()
1315 if (UNLIKELY(count != expected_size)) { in CheckIntraIdSection()
1316 ErrorStringPrintf("Bad size for section: got %x, expected %x", count, expected_size); in CheckIntraIdSection()