commit | e26e5ca587b47067fcf0f1cec257d2db6755afb3 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Thu Dec 02 11:08:30 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Dec 14 17:42:10 2021 +0900 |
tree | a9088388fef6b64d540ec8f24833e9beccb0f063 | |
parent | 3183b5c2ccb259ec218420c8bfcd8f7e4f45c05e [diff] |
libbinder: Parcel APIs for fixed-size arrays readFixedArray/writeFixedArray for std::array<T,N> are added to Parcel class. These recursively calls readData/writeData when arrays are nested. Arrays of primitive values are serialized as contiguous values just like std::vector<T>. For example, std::array<uint8_t, N> is serialized in single-byte strides. Bug: 207087196 Test: binder_parcel_fuzzer Change-Id: I333c386cbe281d44ce15b45a343d03cdbbdccb6d