Lines Matching refs:meta
18 void RecordMetadata::Serialize(const panda::pandasm::RecordMetadata &meta, protoPanda::RecordMetadata &protoMeta)
21 ItemMetadata::Serialize(static_cast<const panda::pandasm::ItemMetadata &>(meta), *protoItemmetadata);
25 std::unique_ptr<panda::pandasm::RecordMetadata> &meta,
29 ItemMetadata::Deserialize(protoItemMetadata, *meta);
32 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator);
35 Metadata::Deserialize(protoMetadata, *meta);
38 void FunctionMetadata::Serialize(const panda::pandasm::FunctionMetadata &meta,
42 ItemMetadata::Serialize(static_cast<const panda::pandasm::ItemMetadata &>(meta), *protoItemmetadata);
46 std::unique_ptr<panda::pandasm::FunctionMetadata> &meta,
50 ItemMetadata::Deserialize(protoItemMetadata, *meta);
53 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator);
56 Metadata::Deserialize(protoMetadata, *meta);
59 void FieldMetadata::Serialize(const panda::pandasm::FieldMetadata &meta, protoPanda::FieldMetadata &protoMeta)
62 ItemMetadata::Serialize(meta, *protoItemmetadata);
64 Type::Serialize(meta.GetFieldType(), *protoType);
65 const auto val = meta.GetValue();
73 std::unique_ptr<panda::pandasm::FieldMetadata> &meta,
77 ItemMetadata::Deserialize(protoItemMetadata, *meta);
79 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator);
81 Metadata::Deserialize(protoMetadata, *meta);
84 meta->SetFieldType(fieldType);
88 meta->SetValue(scalar);
92 void ParamMetadata::Serialize(const panda::pandasm::ParamMetadata &meta, protoPanda::ParamMetadata &protoMeta)
95 AnnotationMetadata::Serialize(static_cast<const panda::pandasm::AnnotationMetadata &>(meta), *protoAnnometadata);
99 std::unique_ptr<panda::pandasm::ParamMetadata> &meta,
103 AnnotationMetadata::Deserialize(protoAnnoMetadata, *meta, allocator);
106 void ItemMetadata::Serialize(const panda::pandasm::ItemMetadata &meta, protoPanda::ItemMetadata &protoMeta)
109 AnnotationMetadata::Serialize(static_cast<const panda::pandasm::AnnotationMetadata &>(meta), *protoAnnometadata);
110 protoMeta.set_accessflags(meta.GetAccessFlags());
113 void ItemMetadata::Deserialize(const protoPanda::ItemMetadata &protoMeta, panda::pandasm::ItemMetadata &meta)
115 meta.SetAccessFlags(protoMeta.accessflags());
118 void AnnotationMetadata::Serialize(const panda::pandasm::AnnotationMetadata &meta,
122 Metadata::Serialize(static_cast<const panda::pandasm::Metadata &>(meta), *protoMetadata);
123 for (const auto &anno : meta.GetAnnotations()) {
130 panda::pandasm::AnnotationMetadata &meta,
141 meta.AddAnnotations(annotations);
144 void Metadata::Serialize(const panda::pandasm::Metadata &meta, protoPanda::Metadata &protoMeta)
146 for (const auto &attr : meta.GetBoolAttributes()) {
149 for (const auto &[name, attrs] : meta.GetAttributes()) {
158 void Metadata::Deserialize(const protoPanda::Metadata &protoMeta, panda::pandasm::Metadata &meta)
161 meta.SetAttribute(attr);
166 meta.SetAttributeValue(key, attr);