Home
last modified time | relevance | path

Searched refs:needSize (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Dbuffer_object.cpp92 uint32_t needSize = GetNeedBufferSize(size); in GetSendBufferAndLock() local
93 if (needSize == 0) { in GetSendBufferAndLock()
109 uint32_t needSize = GetNeedBufferSize(size); in ExpandSendBuffer() local
110 if (needSize == 0) { in ExpandSendBuffer()
113 if (needSize > sendBuffSize_) { in ExpandSendBuffer()
114 char *newBuffer_ = new (std::nothrow) char[needSize]; in ExpandSendBuffer()
129 sendBuffSize_ = needSize; in ExpandSendBuffer()
136 uint32_t needSize = GetNeedBufferSize(size); in GetReceiveBufferAndLock() local
137 if (needSize == 0) { in GetReceiveBufferAndLock()
141 if (needSize > recvBuffSize_) { in GetReceiveBufferAndLock()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp159 static string GetExtraData(const UniqueFd& fd, off_t fileSize, off_t offset, off_t needSize) in GetExtraData() argument
166 char* buffer = new (std::nothrow) char[needSize + 1]; in GetExtraData()
171 memset_s(buffer, needSize + 1, 0, needSize + 1); in GetExtraData()
173 if ((bytesRead = read(fd.Get(), buffer, needSize)) < 0) { in GetExtraData()
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dbuffer_object_unittest.cpp527 uint32_t needSize = object.GetNeedBufferSize(BUFF_SIZE_0); variable
528 bool result = object.ExpandSendBuffer(needSize);