Lines Matching refs:cod
38 std::copy(class_of_device, class_of_device + kLength, cod.data()); in ClassOfDevice()
43 …f(&buffer[0], sizeof(buffer), "%03x-%01x-%02x", (static_cast<uint16_t>(cod[2]) << 4) | cod[1] >> 4, in ToString()
44 cod[1] & 0x0f, cod[0]); in ToString()
89 new_cod.cod[0] = values[2]; in FromString()
90 new_cod.cod[1] = values[1] | ((values[0] & 0xf) << 4); in FromString()
91 new_cod.cod[2] = values[0] >> 4; in FromString()
111 result.cod[2] = static_cast<uint8_t>(cod_int); in FromUint32Legacy()
112 result.cod[1] = static_cast<uint8_t>(cod_int >> 8); in FromUint32Legacy()
113 result.cod[0] = static_cast<uint8_t>(cod_int >> 16); in FromUint32Legacy()
129 return (cod[2]) | (cod[1] << 8) | (cod[0] << 16); in ToUint32Legacy()
137 bool ClassOfDevice::IsValid(const std::string& cod) { in IsValid() argument
138 return ClassOfDevice::FromString(cod).has_value(); in IsValid()