template <size_t N>

class PropEncodedArrayElement

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

Represents a tuple of N-elements encoded as collection of cells. Each cell is a 32 bit big endian

unsigned integer.

A B C D

u32 u32 u32 u32 => 2 tuple of a 16 byte element. 2 cells per tuple element.

field 1 = A

<

<

32 | B

field 2 = C

<

<

32 | D

A, B, C and D are the endian decoded values of each cell, that is from big endian to the

platforms endianess.

This class represents the individual elements of each `prop-encoded-array`.

Public Members

static const size_t kFields

Public Methods

void PropEncodedArrayElement<N> ()

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

void PropEncodedArrayElement<N> (const PropEncodedArrayElement<N> & )

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

PropEncodedArrayElement<N> & operator= (const PropEncodedArrayElement<N> & )

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

void PropEncodedArrayElement<N> (ByteView raw_element, const std::array<size_t, N> & num_cells)

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

std::optional<uint64_t> operator[] (size_t index)

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