commit | f32d1b07263f43b596994f953864e056839850ba | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Nov 27 12:44:10 2018 -0800 |
committer | Steven Moreland <smoreland@google.com> | Tue Nov 27 14:40:51 2018 -0800 |
tree | becec5e114e56c8c0f95f94e08eea78ee9a344bd | |
parent | ebad92540553de4f991064548724725bb7e3b87c [diff] |
libbinder_ndk: AParcel_(get|set)DataPosition This allows you do the following: - a = getPosition - writeInt32(0) - b = getPosition - write data of unknown size - c = getPosition - setPosition(a) - write(c - b) This allows to skip reading the data of unknown size. Bug: 118395170 Test: atest android.binder.cts Change-Id: Id8033705331c6a48327c240ad33bd2d5f9fc190c