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