Home
last modified time | relevance | path

Searched refs:GetRustDataType (Results 1 – 25 of 33) sorted by relevance

12

/system/bt/gd/packet/parser/fields/
Dvector_field.cc253 std::string VectorField::GetRustDataType() const { in GetRustDataType() function in VectorField
254 return "Vec::<" + element_field_->GetRustDataType() + ">"; in GetRustDataType()
310 s << "let " << GetName() << ": " << GetRustDataType() << " = "; in GenRustGetter()
327 s << element_field->GetRustDataType() << "::from_le_bytes(["; in GenRustGetter()
337 s << "let mut " << GetName() << ": " << GetRustDataType() << " = Vec::new();"; in GenRustGetter()
354 s << " match " << element_field->GetRustDataType() << "::parse(&parsable_) {"; in GenRustGetter()
Dscalar_field.cc139 std::string ScalarField::GetRustDataType() const { in GetRustDataType() function in ScalarField
208 if (GetRustParseDataType() != GetRustDataType()) { in GenRustGetter()
210 …s << GetRustDataType() << "::from_" << GetRustParseDataType() << "(" << GetName() << ").unwrap();"; in GenRustGetter()
220 } else if (GetRustParseDataType() != GetRustDataType()) { in GenRustWriter()
Dpayload_field.cc116 std::string PayloadField::GetRustDataType() const { in GetRustDataType() function in PayloadField
121 s << "let " << GetName() << ": " << GetRustDataType() << " = "; in GenRustGetter()
Dstruct_field.cc91 std::string StructField::GetRustDataType() const { in GetRustDataType() function in StructField
101 s << GetRustDataType() << "::parse(&bytes[" << start_offset.bytes() << ".."; in GenRustGetter()
Denum_field.h46 virtual std::string GetRustDataType() const override;
Dfixed_scalar_field.cc42 s << "let " << GetName() << ": " << GetRustDataType() << " = " << value_ << ";"; in GenRustWriter()
Dpadding_field.cc65 std::string PaddingField::GetRustDataType() const { in GetRustDataType() function in PaddingField
Denum_field.cc59 std::string EnumField::GetRustDataType() const { in GetRustDataType() function in EnumField
Dreserved_field.cc71 std::string ReservedField::GetRustDataType() const { in GetRustDataType() function in ReservedField
Dchecksum_start_field.cc69 std::string ChecksumStartField::GetRustDataType() const { in GetRustDataType() function in ChecksumStartField
Dgroup_field.cc86 std::string GroupField::GetRustDataType() const { in GetRustDataType() function in GroupField
Dbody_field.cc79 std::string BodyField::GetRustDataType() const { in GetRustDataType() function in BodyField
Dgroup_field.h58 virtual std::string GetRustDataType() const override;
Dreserved_field.h50 virtual std::string GetRustDataType() const override;
Dcustom_field_fixed_size.h50 virtual std::string GetRustDataType() const override;
Dvariable_length_struct_field.h54 virtual std::string GetRustDataType() const override;
Dpadding_field.h54 virtual std::string GetRustDataType() const override;
Dchecksum_start_field.h56 virtual std::string GetRustDataType() const override;
Dbody_field.h55 virtual std::string GetRustDataType() const override;
Darray_field.cc199 std::string ArrayField::GetRustDataType() const { in GetRustDataType() function in ArrayField
200 return "[" + element_field_->GetRustDataType() + "; " + std::to_string(array_size_) + "]"; in GetRustDataType()
Dcustom_field.h56 virtual std::string GetRustDataType() const override;
Dpayload_field.h59 virtual std::string GetRustDataType() const override;
Dstruct_field.h54 virtual std::string GetRustDataType() const override;
Dscalar_field.h54 virtual std::string GetRustDataType() const override;
Darray_field.h67 virtual std::string GetRustDataType() const override;

12