• 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()
62 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoElement.scalar(), allocator); in Deserialize()
63 auto *element = allocator->New<panda::pandasm::AnnotationElement>(protoElement.name(), in Deserialize()
64 std::make_unique<panda::pandasm::ScalarValue>(scalar)); in Deserialize()
69 void ScalarValue::Serialize(const panda::pandasm::ScalarValue &scalar, protoPanda::ScalarValue &pro… in Serialize()
75 case panda::pandasm::Value::Type::U1: in Serialize()
76 case panda::pandasm::Value::Type::U8: in Serialize()
79 case panda::pandasm::Value::Type::U16: in Serialize()
82 case panda::pandasm::Value::Type::STRING_NULLPTR: in Serialize()
83 case panda::pandasm::Value::Type::U32: in Serialize()
86 case panda::pandasm::Value::Type::U64: in Serialize()
89 case panda::pandasm::Value::Type::I8: in Serialize()
92 case panda::pandasm::Value::Type::I16: in Serialize()
95 case panda::pandasm::Value::Type::I32: in Serialize()
98 case panda::pandasm::Value::Type::I64: in Serialize()
101 case panda::pandasm::Value::Type::F32: in Serialize()
105 case panda::pandasm::Value::Type::F64: in Serialize()
109 case panda::pandasm::Value::Type::STRING: in Serialize()
110 case panda::pandasm::Value::Type::METHOD: in Serialize()
111 case panda::pandasm::Value::Type::ENUM: in Serialize()
112 case panda::pandasm::Value::Type::LITERALARRAY: in Serialize()
116 case panda::pandasm::Value::Type::RECORD: { in Serialize()
119 Type::Serialize(scalar.GetValue<panda::pandasm::Type>(), *protoType); in Serialize()
122 case panda::pandasm::Value::Type::ANNOTATION: { in Serialize()
125 … AnnotationData::Serialize(scalar.GetValue<panda::pandasm::AnnotationData>(), *protoAnno); in Serialize()
129 std::cerr << "unknown panda::pandasm::Value::Type" << std::endl; in Serialize()
135 panda::pandasm::ScalarValue ScalarValue::Deserialize(const protoPanda::ScalarValue &protoScalar, in Deserialize()
136 panda::ArenaAllocator *allocator) in Deserialize()
139 …std::variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::Annotatio… in Deserialize()
158 … value = static_cast<panda::pandasm::Type>(Type::Deserialize(protoScalar.valuetype(), allocator)); in Deserialize()
163 … auto *value = allocator->New<panda::pandasm::AnnotationData>(protoAnnotationData.recordname()); in Deserialize()
171 auto scalar = ScalarValue::CreateScalarValue(static_cast<panda::pandasm::Value::Type>( in Deserialize()
176 panda::pandasm::ScalarValue ScalarValue::CreateScalarValue(const panda::pandasm::Value::Type &type, in CreateScalarValue()
177 …std::variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::Annotatio… in CreateScalarValue()
180 case panda::pandasm::Value::Type::U1: { in CreateScalarValue()
181 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U1>(static_cast<uint8_t>( in CreateScalarValue()
184 case panda::pandasm::Value::Type::U8: { in CreateScalarValue()
185 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>( in CreateScalarValue()
188 case panda::pandasm::Value::Type::U16: { in CreateScalarValue()
189 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U16>(static_cast<uint16_t>( in CreateScalarValue()
192 case panda::pandasm::Value::Type::STRING_NULLPTR: { in CreateScalarValue()
193 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::STRING_NULLPTR>( in CreateScalarValue()
196 case panda::pandasm::Value::Type::U32: { in CreateScalarValue()
197 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U32>(static_cast<uint32_t>( in CreateScalarValue()
200 case panda::pandasm::Value::Type::U64: { in CreateScalarValue()
201 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U64>(static_cast<uint64_t>( in CreateScalarValue()
204 case panda::pandasm::Value::Type::I8: { in CreateScalarValue()
205 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I8>(static_cast<int8_t>( in CreateScalarValue()
208 case panda::pandasm::Value::Type::I16: { in CreateScalarValue()
209 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I16>(static_cast<int16_t>( in CreateScalarValue()
212 case panda::pandasm::Value::Type::I32: { in CreateScalarValue()
213 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I32>(static_cast<int32_t>( in CreateScalarValue()
216 case panda::pandasm::Value::Type::I64: { in CreateScalarValue()
217 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I64>(static_cast<int64_t>( in CreateScalarValue()
220 case panda::pandasm::Value::Type::F32: { in CreateScalarValue()
221 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::F32>(std::get<float>(value… in CreateScalarValue()
223 case panda::pandasm::Value::Type::F64: { in CreateScalarValue()
224 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::F64>(std::get<double>(valu… in CreateScalarValue()
226 case panda::pandasm::Value::Type::STRING: { in CreateScalarValue()
227 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::STRING>( in CreateScalarValue()
230 case panda::pandasm::Value::Type::METHOD: { in CreateScalarValue()
231 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::METHOD>( in CreateScalarValue()
234 case panda::pandasm::Value::Type::ENUM: { in CreateScalarValue()
235 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::ENUM>(std::get<std::string… in CreateScalarValue()
237 case panda::pandasm::Value::Type::RECORD: { in CreateScalarValue()
238 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::RECORD>( in CreateScalarValue()
239 std::get<panda::pandasm::Type>(value)); in CreateScalarValue()
241 case panda::pandasm::Value::Type::ANNOTATION: { in CreateScalarValue()
242 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::ANNOTATION>( in CreateScalarValue()
243 std::get<panda::pandasm::AnnotationData>(value)); in CreateScalarValue()
245 case panda::pandasm::Value::Type::LITERALARRAY: { in CreateScalarValue()
246 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::LITERALARRAY>( in CreateScalarValue()
254 void ArrayValue::Serialize(const panda::pandasm::ArrayValue &array, protoPanda::ArrayValue &protoAr… in Serialize()
264 panda::pandasm::ArrayValue &ArrayValue::Deserialize(const protoPanda::ArrayValue &protoArray, in Deserialize()
265 panda::ArenaAllocator *allocator) in Deserialize()
267 std::vector<panda::pandasm::ScalarValue> values; in Deserialize()
270 panda::pandasm::ScalarValue scalar = ScalarValue::Deserialize(protoValue, allocator); in Deserialize()
273 auto *array = allocator->New<panda::pandasm::ArrayValue>( in Deserialize()
274 static_cast<panda::pandasm::Value::Type>(protoArray.componenttype()), values); in Deserialize()
278 } // panda::proto