summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2014-12-01 19:16:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-12-01 19:16:17 +0000
commit80e8150549c9d8380dadf942336d41ab3d92bf78 (patch)
treea02857dc77b65467a3260c54d0768c9ae36795ed /libs/binder/Parcel.cpp
parent104e12594e085bc8dd32eedb96643b774b1508a0 (diff)
parent41a0f2f86c0ca7d2fef50aef6215987f445a7231 (diff)
Merge "binder: Add {read,write}Uint32 methods to Parcel"
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 99e539c135..c526399b42 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -624,6 +624,12 @@ status_t Parcel::writeInt32(int32_t val)
{
return writeAligned(val);
}
+
+status_t Parcel::writeUint32(uint32_t val)
+{
+ return writeAligned(val);
+}
+
status_t Parcel::writeInt32Array(size_t len, const int32_t *val) {
if (!val) {
return writeAligned(-1);
@@ -1035,6 +1041,15 @@ int32_t Parcel::readInt32() const
return readAligned<int32_t>();
}
+status_t Parcel::readUint32(uint32_t *pArg) const
+{
+ return readAligned(pArg);
+}
+
+uint32_t Parcel::readUint32() const
+{
+ return readAligned<uint32_t>();
+}
status_t Parcel::readInt64(int64_t *pArg) const
{