mirror of
https://github.com/openharmony/utils_native.git
synced 2026-07-21 01:25:42 -04:00
ipc:add new interface of MessageParcelAppend
Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user