Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e26e5ca5 authored by Jooyung Han's avatar Jooyung Han
Browse files

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
parent 3183b5c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment