Home
last modified time | relevance | path

Searched refs:num_leading_bits (Results 1 – 23 of 23) sorted by relevance

/system/bt/gd/packet/parser/fields/
Dscalar_field.cc53 int num_leading_bits = 0; in GenBounds() local
57 num_leading_bits = start_offset.bits() % 8; in GenBounds()
60 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds()
61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds()
66 return num_leading_bits; in GenBounds()
69 void ScalarField::GenExtractor(std::ostream& s, int num_leading_bits, bool) const { in GenExtractor() argument
74 std::string extract_type = util::GetTypeForSize(size.bits() + num_leading_bits); in GenExtractor()
78 if (num_leading_bits != 0) { in GenExtractor()
79 s << "extracted_value >>= " << num_leading_bits << ";"; in GenExtractor()
103 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
[all …]
Dcustom_field_fixed_size.cc82 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustGetter() local
83 if (num_leading_bits != 0) { in GenRustGetter()
96 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustWriter() local
97 if (num_leading_bits != 0) { in GenRustWriter()
Darray_field.cc86 void ArrayField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() argument
101 element_field_->GenExtractor(s, num_leading_bits, for_struct); in GenExtractor()
121 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
124 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dvariable_length_struct_field.cc63 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
65 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dcustom_field.cc65 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
69 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dstruct_field.cc58 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
61 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dvector_field.cc110 void VectorField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() argument
136 element_field_->GenExtractor(s, num_leading_bits, for_struct); in GenExtractor()
159 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
162 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dgroup_field.h40 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dreserved_field.h34 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dcustom_field_fixed_size.h34 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dchecksum_field.h33 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dvariable_length_struct_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpadding_field.h38 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dchecksum_start_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dbody_field.h37 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dcustom_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpayload_field.h37 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dstruct_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dscalar_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Darray_field.h41 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dvector_field.h42 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpacket_field.h51 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const = 0;
/system/bt/gd/packet/parser/
Dstruct_def.cc142 int num_leading_bits = in GenParse() local
145 field->GenExtractor(s, num_leading_bits, true); in GenParse()
150 int num_leading_bits = in GenParse() local
153 field->GenExtractor(s, num_leading_bits, true); in GenParse()