Home
last modified time | relevance | path

Searched refs:size_field_ (Results 1 – 6 of 6) sorted by relevance

/system/bt/gd/packet/parser/fields/
Dvector_field.cc49 if (size_field_ == nullptr) { in GetSize()
54 if (size_field_->GetFieldType() == SizeField::kFieldType) { in GetSize()
55 …std::string ret = "(static_cast<size_t>(Get" + util::UnderscoreToCamelCase(size_field_->GetName())… in GetSize()
62 …return "(static_cast<size_t>(Get" + util::UnderscoreToCamelCase(size_field_->GetName()) + "()) * "… in GetSize()
86 if (size_field_ == nullptr) { in GetStructSize()
91 if (size_field_->GetFieldType() == SizeField::kFieldType) { in GetStructSize()
92 … std::string ret = "(static_cast<size_t>(to_fill->" + size_field_->GetName() + "_extracted_) * 8)"; in GetStructSize()
99 return "(static_cast<size_t>(to_fill->" + size_field_->GetName() + "_extracted_) * " + in GetStructSize()
112 if (size_field_ != nullptr && size_field_->GetFieldType() == CountField::kFieldType) { in GenExtractor()
115 s << "to_fill->" << size_field_->GetName() << "_extracted_;"; in GenExtractor()
[all …]
Dpayload_field.cc23 : PacketField("payload", loc), size_field_(nullptr), size_modifier_(modifier) {} in PayloadField()
26 if (size_field_ != nullptr) { in SetSizeField()
27 …ERROR(this, size_field_, size_field) << "The size field for the payload has already been assigned.… in SetSizeField()
30 size_field_ = size_field; in SetSizeField()
38 if (size_field_ == nullptr) { in GetSize()
45 …std::string dynamic_size = "(Get" + util::UnderscoreToCamelCase(size_field_->GetName()) + "() * 8)… in GetSize()
122 if (size_field_ == nullptr) { in GenRustGetter()
126 s << start_offset.bytes() << " + " << size_field_->GetName() << " as usize)].into();"; in GenRustGetter()
Dbody_field.cc24 if (size_field_ != nullptr) { in SetSizeField()
25 … ERROR(this, size_field_, size_field) << "The size field for the body has already been assigned."; in SetSizeField()
27 size_field_ = size_field; in SetSizeField()
35 if (size_field_ == nullptr) { in GetSize()
38 std::string dynamic_size = "(" + size_field_->GetName() + " * 8)"; in GetSize()
Dbody_field.h63 const SizeField* size_field_{nullptr};
Dpayload_field.h68 const SizeField* size_field_; variable
Dvector_field.h87 const SizeField* size_field_{nullptr};