7#ifndef _ADSP_FIXED_ARRAY_H_
8#define _ADSP_FIXED_ARRAY_H_
22 template <
class VALUE >
29 array_(array), length_(
length)
66 for (
int i = 0 ; i <
length ; i++)
Definition fixed_array.h:13
#define MIN(a, b)
Definition numbers.h:19
VALUE ValueType
Definition fixed_array.h:24
FixedArray(ValueType *array, size_t length)
Initializes a new instance of FixedArray.
Definition fixed_array.h:28
void Copy(ValueType *array, size_t length) const
Copies the values wrapped by the FixedArray into the given C-array.
Definition fixed_array.h:63
size_t GetLength(void) const
Gets the number of elements.
Definition fixed_array.h:56
ValueType operator[](int index) const
Subscript operator.
Definition fixed_array.h:49
ValueType GetValue(int index=0) const
Gets value at the given index of the array.
Definition fixed_array.h:40
uint32_t length
Definition tlv.h:1