Searched refs:presence_bitfield (Results 1 – 1 of 1) sorted by relevance
577 std::vector<uint8> presence_bitfield; in ConvertPresenceBitsToString() local581 presence_bitfield.resize((MAX_VALID_FIELD_TYPE + 0x7) / 8); in ConvertPresenceBitsToString()582 for (size_t i = 0; i < presence_bitfield.size(); ++i) in ConvertPresenceBitsToString()583 presence_bitfield[i] = 0; in ConvertPresenceBitsToString()591 DCHECK(presence_bitfield.size() > (static_cast<size_t>(*field_type) / 8)); in ConvertPresenceBitsToString()594 presence_bitfield[*field_type / 8] |= (0x80 >> (*field_type % 8)); in ConvertPresenceBitsToString()599 data_presence.reserve(presence_bitfield.size() * 2 + 1); in ConvertPresenceBitsToString()602 size_t data_end = presence_bitfield.size(); in ConvertPresenceBitsToString()603 for (; data_end > 0 && !presence_bitfield[data_end - 1]; --data_end) { in ConvertPresenceBitsToString()608 base::StringAppendF(&data_presence, "%02x", presence_bitfield[i]); in ConvertPresenceBitsToString()