diff --git a/base/include/parcel.h b/base/include/parcel.h index 3f752d5..75758eb 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); + bool EnsureObjectsCapacity(); + + bool WriteParcelableOffset(size_t offset); + private: DISALLOW_COPY_AND_MOVE(Parcel); template @@ -328,10 +332,6 @@ private: bool EnsureWritableCapacity(size_t desireCapacity); - bool EnsureObjectsCapacity(); - - bool WriteParcelableOffset(size_t offset); - private: uint8_t *data_; size_t readCursor_;