diff --git a/base/include/parcel.h b/base/include/parcel.h index 3f752d548a218818fa2c5787562bc6b541cb54be..a011996bc47e781cfd2c0c47220e5aae3576416b 100644 --- a/base/include/parcel.h +++ b/base/include/parcel.h @@ -298,6 +298,10 @@ public: bool ReadUint8Unaligned(uint8_t &value); bool ReadUint16Unaligned(uint16_t &value); +protected: + bool WriteObjectOffset(binder_size_t offset); + bool EnsureObjectsCapacity(); + private: DISALLOW_COPY_AND_MOVE(Parcel); template @@ -318,8 +322,6 @@ private: return (((size + SIZE_OFFSET) & (~SIZE_OFFSET)) - size); } - bool WriteObjectOffset(binder_size_t offset); - size_t CalcNewCapacity(size_t minCapacity); bool WriteDataBytes(const void *data, size_t size); @@ -328,8 +330,6 @@ private: bool EnsureWritableCapacity(size_t desireCapacity); - bool EnsureObjectsCapacity(); - bool WriteParcelableOffset(size_t offset); private: