Lines Matching refs:totalLen
185 size_t totalLen = strlen(tmpBuf);
187 if (totalLen > 1 && tmpBuf[totalLen - 1] == '/') {
188 tmpBuf[--totalLen] = 0;
193 return totalLen;
196 if (EOK != memcpy_s(buf, bufSize, tmpBuf, (((totalLen + 1) > bufSize) ? bufSize : (totalLen + 1)))) {
203 return totalLen;
1156 size_t totalLen;
1172 totalLen = bufLen * sizeof(char);
1173 buf = (char *)LOSCFG_FS_MALLOC_HOOK(totalLen);
1179 if ((size_t)totalBytesRead < totalLen) {
1180 totalLen = (size_t)totalBytesRead;
1187 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead;
1193 if (totalLen < (size_t)bytesToRead) {
1197 totalLen -= bytesToRead;
1213 size_t totalLen;
1230 totalLen = bufLen * sizeof(char);
1231 buf = (char *)LOSCFG_FS_MALLOC_HOOK(totalLen);
1239 if (((ssize_t)totalLen <= 0) || ((ssize_t)bytesToWrite <= 0)) {
1242 ret = memcpy_s(curBuf, totalLen, writeBuf, bytesToWrite);
1248 totalLen -= bytesToWrite;