• Home
  • Raw
  • Download

Lines Matching refs:protoValue

19 void VariantValue::Serialize(const LiteralValueType &value, protoPanda::VariantValue &protoValue)  in Serialize()  argument
22 protoValue.set_type(type); in Serialize()
25 protoValue.set_valueint(static_cast<uint64_t>(std::get<bool>(value))); in Serialize()
29 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint8_t>(value))); in Serialize()
33 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint16_t>(value))); in Serialize()
37 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint32_t>(value))); in Serialize()
41 protoValue.set_valueint(std::get<uint64_t>(value)); in Serialize()
45 protoValue.set_valuefloat(std::get<float>(value)); in Serialize()
49 protoValue.set_valuedouble(std::get<double>(value)); in Serialize()
53 protoValue.set_valuestr(std::get<std::string>(value)); in Serialize()
61 void VariantValue::Deserialize(const protoPanda::VariantValue &protoValue, LiteralValueType &value) in Deserialize() argument
63 auto type = protoValue.type(); in Deserialize()
66 value = static_cast<bool>(protoValue.valueint()); in Deserialize()
70 value = static_cast<uint8_t>(protoValue.valueint()); in Deserialize()
74 value = static_cast<uint16_t>(protoValue.valueint()); in Deserialize()
78 value = static_cast<uint32_t>(protoValue.valueint()); in Deserialize()
82 value = static_cast<uint64_t>(protoValue.valueint()); in Deserialize()
86 value = protoValue.valuefloat(); in Deserialize()
90 value = protoValue.valuedouble(); in Deserialize()
94 value = protoValue.valuestr(); in Deserialize()