summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-12-01 10:01:10 -0800
committerDan Stoza <stoza@google.com>2014-12-01 11:13:11 -0800
commit41a0f2f86c0ca7d2fef50aef6215987f445a7231 (patch)
treea02857dc77b65467a3260c54d0768c9ae36795ed /include/binder
parent104e12594e085bc8dd32eedb96643b774b1508a0 (diff)
downloadframeworks_native-41a0f2f86c0ca7d2fef50aef6215987f445a7231.zip
frameworks_native-41a0f2f86c0ca7d2fef50aef6215987f445a7231.tar.gz
frameworks_native-41a0f2f86c0ca7d2fef50aef6215987f445a7231.tar.bz2
binder: Add {read,write}Uint32 methods to Parcel
Adds readUint32 and writeUint32 methods to the Parcel class. This saves a lot of static_casting in anything implementing a Binder interface on the native side. Change-Id: Iafc73b0633654a3a4c49767f41806b56906c924f
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/Parcel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index 2ee99f8..fee8090 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -94,6 +94,7 @@ public:
void* writeInplace(size_t len);
status_t writeUnpadded(const void* data, size_t len);
status_t writeInt32(int32_t val);
+ status_t writeUint32(uint32_t val);
status_t writeInt64(int64_t val);
status_t writeFloat(float val);
status_t writeDouble(double val);
@@ -152,6 +153,8 @@ public:
const void* readInplace(size_t len) const;
int32_t readInt32() const;
status_t readInt32(int32_t *pArg) const;
+ uint32_t readUint32() const;
+ status_t readUint32(uint32_t *pArg) const;
int64_t readInt64() const;
status_t readInt64(int64_t *pArg) const;
float readFloat() const;