Searched refs:size_field (Results 1 – 14 of 14) sorted by relevance
/packages/modules/Bluetooth/tools/pdl/src/backends/rust/ |
D | parser.rs | 307 } else if let Some(size_field) = self.find_size_field(id) { in add_array_field() 308 ArrayShape::SizeField(size_field) in add_array_field() 322 (ElementWidth::Unknown, ArrayShape::SizeField(size_field)) => { in add_array_field() 326 self.check_size("e!(#size_field)); in add_array_field() 330 let (head, tail) = #span.get().split_at(#size_field); in add_array_field() 413 let array_size = if let ArrayShape::SizeField(size_field) = &array_shape { in add_array_field() 414 self.check_size("e!(#size_field)); in add_array_field() 415 quote!(#size_field) in add_array_field() 520 let size_field = size_field_ident(field_id); in add_payload_field() localVariable 521 self.check_size("e!(#size_field )); in add_payload_field() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/fields/ |
D | body_field.cc | 23 void BodyField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument 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()
|
D | payload_field.cc | 25 void PayloadField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument 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()
|
D | vector_field.cc | 213 void VectorField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument 214 if (size_field->GetFieldType() == CountField::kFieldType && !size_modifier_.empty()) { in SetSizeField() 215 ERROR(this, size_field) << "Can not use count field to describe array with a size modifier." in SetSizeField() 219 size_field_ = size_field; in SetSizeField()
|
D | body_field.h | 31 void SetSizeField(const SizeField* size_field);
|
D | payload_field.h | 31 void SetSizeField(const SizeField* size_field);
|
D | vector_field.h | 62 void SetSizeField(const SizeField* size_field);
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | parent_def.cc | 75 const SizeField* size_field = static_cast<SizeField*>(field); in AssignSizeFields() local 77 const auto& var_len_field = fields_.GetField(size_field->GetSizedFieldName()); in AssignSizeFields() 84 for (auto it = fields_.begin(); *it != size_field; it++) { in AssignSizeFields() 87 …ERROR(var_len_field, size_field) << "Size/count field must come before the variable length field i… in AssignSizeFields() 93 payload_field->SetSizeField(size_field); in AssignSizeFields() 99 body_field->SetSizeField(size_field); in AssignSizeFields() 105 vector_field->SetSizeField(size_field); in AssignSizeFields() 111 ERROR(field, size_field) << "Can not use size/count in reference to a fixed size field.\n"; in AssignSizeFields()
|
D | Android.bp | 34 "fields/size_field.cc",
|
D | BUILD.gn | 57 "fields/size_field.cc",
|
/packages/modules/Bluetooth/tools/pdl/src/ |
D | pdl.pest | 38 size_field = { "_size_" ~ "(" ~ (identifier|payload_identifier|body_identifier) ~ ")" ~ ":" ~ inte… 58 size_field |
|
D | analyzer.rs | 1205 if let Some(size_field) = decl.fields().find(|field| match &field.desc { in check_array_fields() 1214 .with_message(format!("redundant array {} field", size_field.kind())) in check_array_fields() 1216 size_field.loc.primary(), in check_array_fields()
|
D | parser.rs | 403 Rule::size_field => { in parse_field()
|
/packages/modules/Bluetooth/tools/pdl/doc/ |
D | reference.md | 388 > [size_field](#fields-size) |\ 489 > size_field:\
|