• Home
  • Raw
  • Download

Lines Matching full:panda

18 namespace panda::proto {  namespace
19 void AnnotationData::Serialize(const panda::pandasm::AnnotationData &anno, protoPanda::AnnotationDa… in Serialize()
28 void AnnotationData::Deserialize(const protoPanda::AnnotationData &protoAnno, panda::pandasm::Annot… in Deserialize()
29 panda::ArenaAllocator *allocator) in Deserialize()
32panda::pandasm::AnnotationElement &element = AnnotationElement::Deserialize(protoElement, allocato… in Deserialize()
37 void AnnotationElement::Serialize(const panda::pandasm::AnnotationElement &element, in Serialize()
52 panda::pandasm::AnnotationElement &AnnotationElement::Deserialize(const protoPanda::AnnotationEleme… in Deserialize()
53 panda::ArenaAllocator *allocator) in Deserialize()
56panda::pandasm::ArrayValue &array = ArrayValue::Deserialize(protoElement.array(), allocator); in Deserialize()
57 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(), in Deserialize()
58 std::make_unique<panda::pandasm::ArrayValue>(array)); in Deserialize()
61 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoElement.scalar(), allocator); in Deserialize()
62 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(), in Deserialize()
63 std::make_unique<panda::pandasm::ScalarValue>(scalar)); in Deserialize()
67 void ScalarValue::Serialize(const panda::pandasm::ScalarValue &scalar, protoPanda::ScalarValue &pro… in Serialize()
73 case panda::pandasm::Value::Type::U1: in Serialize()
74 case panda::pandasm::Value::Type::U8: in Serialize()
77 case panda::pandasm::Value::Type::U16: in Serialize()
80 case panda::pandasm::Value::Type::STRING_NULLPTR: in Serialize()
81 case panda::pandasm::Value::Type::U32: in Serialize()
84 case panda::pandasm::Value::Type::U64: in Serialize()
87 case panda::pandasm::Value::Type::I8: in Serialize()
90 case panda::pandasm::Value::Type::I16: in Serialize()
93 case panda::pandasm::Value::Type::I32: in Serialize()
96 case panda::pandasm::Value::Type::I64: in Serialize()
99 case panda::pandasm::Value::Type::F32: in Serialize()
103 case panda::pandasm::Value::Type::F64: in Serialize()
107 case panda::pandasm::Value::Type::STRING: in Serialize()
108 case panda::pandasm::Value::Type::METHOD: in Serialize()
109 case panda::pandasm::Value::Type::ENUM: in Serialize()
110 case panda::pandasm::Value::Type::LITERALARRAY: in Serialize()
114 case panda::pandasm::Value::Type::RECORD: { in Serialize()
117 Type::Serialize(scalar.GetValue<panda::pandasm::Type>(), *protoType); in Serialize()
120 case panda::pandasm::Value::Type::ANNOTATION: { in Serialize()
123 … AnnotationData::Serialize(scalar.GetValue<panda::pandasm::AnnotationData>(), *protoAnno); in Serialize()
127 std::cerr << "unknown panda::pandasm::Value::Type" << std::endl; in Serialize()
133 panda::pandasm::ScalarValue ScalarValue::Deserialize(const protoPanda::ScalarValue &protoScalar, in Deserialize()
134 panda::ArenaAllocator *allocator) in Deserialize()
137 …std::variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::Annotatio… in Deserialize()
156 … value = static_cast<panda::pandasm::Type>(Type::Deserialize(protoScalar.valuetype(), allocator)); in Deserialize()
161 … auto *value = allocator->New<panda::pandasm::AnnotationData>(protoAnnotationData.recordname()); in Deserialize()
168 auto scalar = ScalarValue::CreateScalarValue(static_cast<panda::pandasm::Value::Type>( in Deserialize()
173 panda::pandasm::ScalarValue ScalarValue::CreateScalarValue(const panda::pandasm::Value::Type &type, in CreateScalarValue()
174 …std::variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::Annotatio… in CreateScalarValue()
177 case panda::pandasm::Value::Type::U1: { in CreateScalarValue()
178 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U1>(static_cast<uint8_t>( in CreateScalarValue()
181 case panda::pandasm::Value::Type::U8: { in CreateScalarValue()
182 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>( in CreateScalarValue()
185 case panda::pandasm::Value::Type::U16: { in CreateScalarValue()
186 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U16>(static_cast<uint16_t>( in CreateScalarValue()
189 case panda::pandasm::Value::Type::STRING_NULLPTR: { in CreateScalarValue()
190 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::STRING_NULLPTR>( in CreateScalarValue()
193 case panda::pandasm::Value::Type::U32: { in CreateScalarValue()
194 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U32>(static_cast<uint32_t>( in CreateScalarValue()
197 case panda::pandasm::Value::Type::U64: { in CreateScalarValue()
198 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U64>(static_cast<uint64_t>( in CreateScalarValue()
201 case panda::pandasm::Value::Type::I8: { in CreateScalarValue()
202 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I8>(static_cast<int8_t>( in CreateScalarValue()
205 case panda::pandasm::Value::Type::I16: { in CreateScalarValue()
206 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I16>(static_cast<int16_t>( in CreateScalarValue()
209 case panda::pandasm::Value::Type::I32: { in CreateScalarValue()
210 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I32>(static_cast<int32_t>( in CreateScalarValue()
213 case panda::pandasm::Value::Type::I64: { in CreateScalarValue()
214 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I64>(static_cast<int64_t>( in CreateScalarValue()
217 case panda::pandasm::Value::Type::F32: { in CreateScalarValue()
218 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::F32>(std::get<float>(value… in CreateScalarValue()
220 case panda::pandasm::Value::Type::F64: { in CreateScalarValue()
221 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::F64>(std::get<double>(valu… in CreateScalarValue()
223 case panda::pandasm::Value::Type::STRING: { in CreateScalarValue()
224 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::STRING>( in CreateScalarValue()
227 case panda::pandasm::Value::Type::METHOD: { in CreateScalarValue()
228 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::METHOD>( in CreateScalarValue()
231 case panda::pandasm::Value::Type::ENUM: { in CreateScalarValue()
232 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::ENUM>(std::get<std::string… in CreateScalarValue()
234 case panda::pandasm::Value::Type::RECORD: { in CreateScalarValue()
235 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::RECORD>( in CreateScalarValue()
236 std::get<panda::pandasm::Type>(value)); in CreateScalarValue()
238 case panda::pandasm::Value::Type::ANNOTATION: { in CreateScalarValue()
239 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::ANNOTATION>( in CreateScalarValue()
240 std::get<panda::pandasm::AnnotationData>(value)); in CreateScalarValue()
242 case panda::pandasm::Value::Type::LITERALARRAY: { in CreateScalarValue()
243 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>( in CreateScalarValue()
251 void ArrayValue::Serialize(const panda::pandasm::ArrayValue &array, protoPanda::ArrayValue &protoAr… in Serialize()
261 panda::pandasm::ArrayValue &ArrayValue::Deserialize(const protoPanda::ArrayValue &protoArray, in Deserialize()
262 panda::ArenaAllocator *allocator) in Deserialize()
264 std::vector<panda::pandasm::ScalarValue> values; in Deserialize()
267 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoValue, allocator); in Deserialize()
270 auto *array = allocator->New<panda::pandasm::ArrayValue>( in Deserialize()
271 static_cast<panda::pandasm::Value::Type>(protoArray.componenttype()), values); in Deserialize()
274 } // panda::proto