From 6c81842e9820142a06abbc22f134cfa08378d57c Mon Sep 17 00:00:00 2001 From: hanlin15 Date: Thu, 24 Jul 2025 15:11:48 +0800 Subject: [PATCH] fix:change SetDataCapacity to SetMaxCapacity Signed-off-by: hanlin15 Change-Id: I4a98307954f2546b120b4b62743234ecd3ed1a25 --- ipc/native/src/taihe/src/ohos.rpc.rpc.impl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ipc/native/src/taihe/src/ohos.rpc.rpc.impl.cpp b/ipc/native/src/taihe/src/ohos.rpc.rpc.impl.cpp index 96ac25e7..8d3ea8e5 100644 --- a/ipc/native/src/taihe/src/ohos.rpc.rpc.impl.cpp +++ b/ipc/native/src/taihe/src/ohos.rpc.rpc.impl.cpp @@ -45,7 +45,6 @@ namespace OHOS { static constexpr OHOS::HiviewDFX::HiLogLabel LOG_LABEL = { LOG_CORE, OHOS::LOG_ID_IPC_OTHER, "RpcTaiheImpl" }; constexpr size_t MAX_BYTES_LENGTH = 40960; -constexpr size_t MAX_CAPACITY_TO_WRITE = 200 * 1024; constexpr size_t BYTE_SIZE_32 = 4; constexpr size_t BYTE_SIZE_16 = 2; constexpr size_t BYTE_SIZE_8 = 1; @@ -512,7 +511,6 @@ MessageSequenceImpl::MessageSequenceImpl() taihe::set_error("create MessageParcel failed"); } isOwner_ = true; - nativeParcel_->SetDataCapacity(MAX_CAPACITY_TO_WRITE); } MessageSequenceImpl::MessageSequenceImpl(OHOS::MessageParcel* messageparcel) -- Gitee