Home
last modified time | relevance | path

Searched refs:SizeField (Results 1 – 13 of 13) sorted by relevance

/system/bt/gd/packet/parser/fields/
Dsize_field.cc20 const std::string SizeField::kFieldType = "SizeField";
22 SizeField::SizeField(std::string name, int size, ParseLocation loc) in SizeField() function in SizeField
25 const std::string& SizeField::GetFieldType() const { in GetFieldType()
26 return SizeField::kFieldType; in GetFieldType()
29 void SizeField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
35 std::string SizeField::GetBuilderParameterType() const { in GetBuilderParameterType()
39 bool SizeField::GenBuilderParameter(std::ostream&) const { in GenBuilderParameter()
44 bool SizeField::HasParameterValidator() const { in HasParameterValidator()
48 void SizeField::GenParameterValidator(std::ostream&) const { in GenParameterValidator()
53 void SizeField::GenInserter(std::ostream&) const { in GenInserter()
[all …]
Dsize_field.h23 class SizeField : public ScalarField {
25 SizeField(std::string name, int size, ParseLocation loc);
Dbody_field.h31 void SetSizeField(const SizeField* size_field);
63 const SizeField* size_field_{nullptr};
Dpayload_field.h31 void SetSizeField(const SizeField* size_field);
68 const SizeField* size_field_;
Dvector_field.h62 void SetSizeField(const SizeField* size_field);
87 const SizeField* size_field_{nullptr};
Dbody_field.cc23 void BodyField::SetSizeField(const SizeField* size_field) { in SetSizeField()
Dvector_field.cc54 if (size_field_->GetFieldType() == SizeField::kFieldType) { in GetSize()
91 if (size_field_->GetFieldType() == SizeField::kFieldType) { in GetStructSize()
213 void VectorField::SetSizeField(const SizeField* size_field) { in SetSizeField()
Dpayload_field.cc25 void PayloadField::SetSizeField(const SizeField* size_field) { in SetSizeField()
Dscalar_field.cc218 if (GetFieldType() == SizeField::kFieldType || GetFieldType() == FixedScalarField::kFieldType) { in GenRustWriter()
/system/bt/gd/packet/parser/
Dstruct_def.cc60 field->GetFieldType() == SizeField::kFieldType) in GenToString()
138 …field->GetFieldType() != FixedScalarField::kFieldType && field->GetFieldType() != SizeField::kFiel… in GenParse()
148 …if (field->GetFieldType() == CountField::kFieldType || field->GetFieldType() == SizeField::kFieldT… in GenParse()
210 …if (field->GetFieldType() == CountField::kFieldType || field->GetFieldType() == SizeField::kFieldT… in GenDefinition()
319 SizeField::kFieldType, in GenRustFieldNameAndType()
336 SizeField::kFieldType, in GenRustFieldNames()
354 SizeField::kFieldType, in GenRustDeclarations()
395 SizeField::kFieldType, in GenRustImpls()
Dparent_def.cc71 …if (field->GetFieldType() != SizeField::kFieldType && field->GetFieldType() != CountField::kFieldT… in AssignSizeFields()
75 const SizeField* size_field = static_cast<SizeField*>(field); in AssignSizeFields()
348 if (field->GetFieldType() == SizeField::kFieldType) { in GenSize()
349 const auto& field_name = ((SizeField*)field)->GetSizedFieldName(); in GenSize()
391 if (field->GetFieldType() == SizeField::kFieldType) { in GenSerialize()
392 const auto& field_name = ((SizeField*)field)->GetSizedFieldName(); in GenSerialize()
455 const auto& vector_name = ((SizeField*)field)->GetSizedFieldName() + "_"; in GenSerialize()
644 if (field->GetFieldType() == SizeField::kFieldType) { in GenRustWriteToFields()
645 const auto& field_name = ((SizeField*)field)->GetSizedFieldName(); in GenRustWriteToFields()
Dpacket_def.cc138 SizeField::kFieldType, in GenParserDefinitionPybind11()
855 SizeField::kFieldType, in GenRustStructFieldNameAndType()
875 SizeField::kFieldType, in GenRustStructFieldNames()
1008 SizeField::kFieldType, in GenRustStructImpls()
1138 SizeField::kFieldType, in GenRustAccessStructImpls()
1196 SizeField::kFieldType, in GenRustBuilderStructImpls()
Dlanguage_y.yy663 $$ = new SizeField(*$3, $6, LOC);
669 $$ = new SizeField("payload", $6, LOC);
674 $$ = new SizeField("body", $6, LOC);