Home
last modified time | relevance | path

Searched refs:memLength (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/src/c_api/source/
H A Dipc_cremote_object.cpp168 int memLength = static_cast<int>(value.length()) + 1; in OH_IPCRemoteProxy_GetInterfaceDescriptor() local
169 *descriptor = static_cast<char*>(allocator(memLength)); in OH_IPCRemoteProxy_GetInterfaceDescriptor()
174 if (memcpy_s(*descriptor, memLength, value.c_str(), memLength) != EOK) { in OH_IPCRemoteProxy_GetInterfaceDescriptor()
178 *len = memLength; in OH_IPCRemoteProxy_GetInterfaceDescriptor()
H A Dipc_cparcel.cpp367 int memLength = static_cast<int>(strToken.length()) + 1; in OH_IPCParcel_ReadInterfaceToken() local
368 *token = static_cast<char*>(allocator(memLength)); in OH_IPCParcel_ReadInterfaceToken()
374 if (memcpy_s(*token, memLength, strToken.c_str(), memLength) != EOK) { in OH_IPCParcel_ReadInterfaceToken()
376 ZLOGE(LOG_LABEL, "memcpy string failed, string len: %{public}d", memLength); in OH_IPCParcel_ReadInterfaceToken()
379 *len = memLength; in OH_IPCParcel_ReadInterfaceToken()