Merge "binder: Add {read,write}Uint32 methods to Parcel"
This commit is contained in:
commit
80e8150549
@ -94,6 +94,7 @@ public:
|
|||||||
void* writeInplace(size_t len);
|
void* writeInplace(size_t len);
|
||||||
status_t writeUnpadded(const void* data, size_t len);
|
status_t writeUnpadded(const void* data, size_t len);
|
||||||
status_t writeInt32(int32_t val);
|
status_t writeInt32(int32_t val);
|
||||||
|
status_t writeUint32(uint32_t val);
|
||||||
status_t writeInt64(int64_t val);
|
status_t writeInt64(int64_t val);
|
||||||
status_t writeFloat(float val);
|
status_t writeFloat(float val);
|
||||||
status_t writeDouble(double val);
|
status_t writeDouble(double val);
|
||||||
@ -152,6 +153,8 @@ public:
|
|||||||
const void* readInplace(size_t len) const;
|
const void* readInplace(size_t len) const;
|
||||||
int32_t readInt32() const;
|
int32_t readInt32() const;
|
||||||
status_t readInt32(int32_t *pArg) const;
|
status_t readInt32(int32_t *pArg) const;
|
||||||
|
uint32_t readUint32() const;
|
||||||
|
status_t readUint32(uint32_t *pArg) const;
|
||||||
int64_t readInt64() const;
|
int64_t readInt64() const;
|
||||||
status_t readInt64(int64_t *pArg) const;
|
status_t readInt64(int64_t *pArg) const;
|
||||||
float readFloat() const;
|
float readFloat() const;
|
||||||
|
@ -624,6 +624,12 @@ status_t Parcel::writeInt32(int32_t val)
|
|||||||
{
|
{
|
||||||
return writeAligned(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) {
|
status_t Parcel::writeInt32Array(size_t len, const int32_t *val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
return writeAligned(-1);
|
return writeAligned(-1);
|
||||||
@ -1035,6 +1041,15 @@ int32_t Parcel::readInt32() const
|
|||||||
return readAligned<int32_t>();
|
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
|
status_t Parcel::readInt64(int64_t *pArg) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user