template <typename ElementType, size_t N = ElementType::kFields>

class PropEncodedArray

Defined at line 93 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h

Represents a `prop-encoded-array`, where each element is an N-Tuple, represented by

PropEncodedArrayElement

<N

>.

To represent specific properties |DecodedProperty| must provide |DecodedProperty::kFields|

as the value of N for the array elements. Additionally it is recommended that |DecodedProperty|

inherits from |PropEncodedArrayElement| and add accessors as needed for each element of the

tuple.

See |RegProperty| and |RegPropertyElement| for an example.

Public Methods

void PropEncodedArray<ElementType, N> ()

Defined at line 97 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h

template <typename... Elements>
void PropEncodedArray<ElementType, N> (ByteView data, Elements... num_cells)

Defined at line 100 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h

ElementType operator[] (size_t index)

Defined at line 110 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h

size_t size ()

Returns the number of entries in the array, accounting for the number of cells per entry.

Defined at line 117 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h