| commit | 00a985c1a87505aae5cdffcf455c6dcc884c3036 | [log] [tgz] |
|---|---|---|
| author | Andreas Huber <andih@google.com> | Wed Sep 28 14:24:53 2016 -0700 |
| committer | Andreas Huber <andih@google.com> | Thu Sep 29 10:26:32 2016 -0700 |
| tree | 9466b1f1c13caf4645729a503e559a2a26ad4b29 | |
| parent | c2d231c9dc61df78f8bcd4f6bfb9cfb7654031d8 [diff] |
Adds hidl_array<T, SIZE1, SIZE...>::size() API
One-dimensional arrays "hidl_array<T, SIZE>" now have an accessor
static size_t hidl_array<T, SIZE>::size();
that returns the size (number of elements) of the array,
multi-dimensional arrays "hidl_array<T, SIZE1, SIZE...> gain an accessor
static tuple<size_t, ...> size()
that returns a tuple containing the sizes of each dimension.
Bug: 31805709
Test: hidl_test, hidl_test_java
Change-Id: I80e6cd4f8e506ed2dcffdbfba560983f6239a190