Searched refs:needSize (Results 1 – 3 of 3) sorted by relevance
92 uint32_t needSize = GetNeedBufferSize(size); in GetSendBufferAndLock() local93 if (needSize == 0) { in GetSendBufferAndLock()109 uint32_t needSize = GetNeedBufferSize(size); in ExpandSendBuffer() local110 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() local137 if (needSize == 0) { in GetReceiveBufferAndLock()141 if (needSize > recvBuffSize_) { in GetReceiveBufferAndLock()[all …]
159 static string GetExtraData(const UniqueFd& fd, off_t fileSize, off_t offset, off_t needSize) in GetExtraData() argument166 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()
527 uint32_t needSize = object.GetNeedBufferSize(BUFF_SIZE_0); variable528 bool result = object.ExpandSendBuffer(needSize);