ipc:add new interface of MessageParcelAppend

Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
This commit is contained in:
liubb_0516
2022-05-18 20:17:34 +08:00
parent 99f76e7662
commit 8ae0d33563
+3 -4
View File
@@ -299,8 +299,7 @@ public:
bool ReadUint16Unaligned(uint16_t &value);
bool EnsureObjectsCapacity();
bool WriteParcelableOffset(size_t offset);
bool WriteObjectOffset(binder_size_t offset);
private:
DISALLOW_COPY_AND_MOVE(Parcel);
@@ -322,8 +321,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);
@@ -332,6 +329,8 @@ private:
bool EnsureWritableCapacity(size_t desireCapacity);
bool WriteParcelableOffset(size_t offset);
private:
uint8_t *data_;
size_t readCursor_;