From 99f76e76626535d29c844a42e07b6a85abb7a2c6 Mon Sep 17 00:00:00 2001 From: liubb_0516 Date: Wed, 18 May 2022 17:38:13 +0800 Subject: [PATCH] ipc:add new interface of MessageParcelAppend Signed-off-by: liubb_0516 --- base/include/parcel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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_;