/commonlibrary/c_utils/base/include/ |
D | securec.h | 131 SECUREC_API errno_t memset_s(void *dest, size_t destMax, int c, size_t count); 145 SECUREC_API errno_t wmemcpy_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count); 155 SECUREC_API errno_t memmove_s(void *dest, size_t destMax, const void *src, size_t count); 165 SECUREC_API errno_t wmemmove_s(wchar_t *dest, size_t destMax, const wchar_t *src, size_t count); 185 …CUREC_API errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count); 206 …CUREC_API errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count); 275 SECUREC_API int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 286 SECUREC_API int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, 425 SECUREC_API errno_t memcpy_s(void *dest, size_t destMax, const void *src, size_t count); 445 SECUREC_API errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count); [all …]
|
D | securectype.h | 181 #define SECUREC_STRNCPY_SM(dest, destMax, src, count) \ argument 184 (SECUREC_TWO_MIN(count , strlen(src)) + 1) <= (size_t)destMax) ? \ 185 ((count < strlen(src))? (memcpy(dest, src, count), *((char *)dest + count) = '\0', EOK): \ 186 (memcpy(dest, src, strlen(src) + 1), EOK )) :(strncpy_error(dest, destMax, src, count))) 229 #define SECUREC_STRNCAT_SM(dest, destMax, src, count) \ argument 234 (((unsigned long long)(count) & (unsigned long long)(-2)) < SECUREC_STRING_MAX_LEN)) { \ 243 } else if ((SECUREC_TWO_MIN((count) , strlen(src)) + 1) <= ncatRestSize ) { \ 244 if ((count) < strlen(src)) { \ 245 (void)memcpy(ncatTmpDest, (src), (count)); \ 246 *(ncatTmpDest + (count)) = '\0'; \ [all …]
|
/commonlibrary/c_utils/base/src/ |
D | rwlock.cpp | 34 int count; in LockRead() local 38 while ((count = lockCount_) == LOCK_STATUS_WRITE || writeWaitCount_ > 0) {} in LockRead() 39 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead() 43 while ((count = lockCount_) == LOCK_STATUS_WRITE) {} in LockRead() 44 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead()
|
D | semaphore_ex.cpp | 33 static uint64_t count = 0; in GenUniqueName() local 37 count++; in GenUniqueName() 41 << std::setw(outWidth) << std::setfill('0') << count++; in GenUniqueName()
|
D | datetime_ex.cpp | 30 return totalSeconds.time_since_epoch().count(); in GetSecondsSince1970ToNow() 42 return totalSeconds.time_since_epoch().count(); in GetSecondsSince1970ToPointTime() 56 return totalDays.time_since_epoch().count(); in GetDaysSince1970ToNow()
|
D | refbase.cpp | 535 int count = 0; in AttemptAcquire() local 536 if (refs_->AttemptIncStrongRef(objectId, count)) { in AttemptAcquire() 538 if (count == INITIAL_PRIMARY_VALUE) { in AttemptAcquire() 550 int count = 0; in AttemptIncStrongRef() local 551 bool ret = refs_->AttemptIncStrongRef(objectId, count); in AttemptIncStrongRef() 552 if (count == INITIAL_PRIMARY_VALUE) { in AttemptIncStrongRef()
|
D | file_ex.cpp | 314 int count = 0; in CountStrInStr() local 318 count++; in CountStrInStr() 321 return count; in CountStrInStr()
|
D | observer.cpp | 29 if (obs.count(o) > 0) { in AddObserver()
|
/commonlibrary/ets_utils/js_util_module/container/hashmap/ |
D | js_hashmap.ts | 105 let count: number = 0; variable 110 done = count >= data.memberNumber; 111 value = done ? undefined : data.keyValueArray[count].key; 112 count++; 123 let count: number = 0; variable 128 done = count >= data.memberNumber; 129 value = done ? undefined : data.keyValueArray[count].value; 130 count++; 155 let count: number = 0; variable 160 done = count >= data.memberNumber; [all …]
|
/commonlibrary/ets_utils/js_util_module/container/hashset/ |
D | js_hashset.ts | 103 let count: number = 0; variable 108 done = count >= data.memberNumber; 109 value = done ? undefined : data.keyValueArray[count].key; 110 count++; 121 let count: number = 0; variable 126 done = count >= data.memberNumber; 127 value = done ? undefined : data.keyValueArray[count].entry(); 128 count++;
|
/commonlibrary/ets_utils/js_util_module/container/treemap/ |
D | js_treemap.ts | 167 let count: number = 0; 172 done = count >= data.memberNumber; 173 value = done ? undefined : data.keyValueArray[count].key; 174 count++; 185 let count: number = 0; 190 done = count >= data.memberNumber; 191 value = done ? undefined : data.keyValueArray[count].value; 192 count++; 223 let count: number = 0; 228 done = count >= data.memberNumber; [all …]
|
/commonlibrary/ets_utils/js_util_module/container/lightweightmap/ |
D | js_lightweightmap.ts | 94 let count: number = 0; variable 99 done = count >= data.memberNumber; 100 … value = done ? undefined : [data.members.keys[count], data.members.values[count]] as [K, V]; 101 count++; 136 let count: number = 0; variable 141 done = count >= data.memberNumber; 142 value = done ? undefined : data.members.keys[count]; 143 count++; 236 let count: number = 0; variable 241 done = count >= data.memberNumber; [all …]
|
/commonlibrary/c_utils/base/test/unittest/common/ |
D | utils_timer_test.cpp | 257 void DoFunc(Utils::Timer &timer, int &count) in DoFunc() argument 260 [&timer, &count]() { in DoFunc() 261 count += 1; in DoFunc() 262 if (count > 9) { in DoFunc() 265 DoFunc(timer, count); in DoFunc() 271 void DoFunc2(Utils::Timer &timer, int &count) in DoFunc2() argument 274 [&timer, &count]() { in DoFunc2() 275 count += 1; in DoFunc2() 276 if (count > 9) { in DoFunc2() 279 DoFunc2(timer, count); in DoFunc2()
|
/commonlibrary/ets_utils/js_util_module/container/lightweightset/ |
D | js_lightweightset.ts | 169 let count: number = 0; variable 174 done = count >= data.memberNumber; 175 value = done ? undefined : data.members.keys[count]; 176 count++; 204 let count: number = 0; variable 210 done = count >= data.memberNumber; 211 tempValue = data.members.keys[count]; 213 count++;
|
/commonlibrary/ets_utils/js_util_module/container/treeset/ |
D | js_treeset.ts | 172 let count: number = 0; 177 done = count >= data.memberNumber; 178 value = done ? undefined : data.keyValueArray[count].value as T; 179 count++; 200 let count: number = 0; 205 done = count >= data.memberNumber; 206 value = done ? undefined : data.keyValueArray[count].entry(); 207 count++;
|
/commonlibrary/ets_utils/js_util_module/container/deque/ |
D | js_deque.ts | 180 let count: number = 0; 184 arr[count++] = this[this.front]; 206 let count: number = deque.front; 211 done = count === deque.rear; 212 value = done ? undefined : deque[count]; 213 count = (count + 1) % deque.capacity;
|
/commonlibrary/ets_utils/js_util_module/container/queue/ |
D | js_queue.ts | 152 let count: number = this.front; 158 done = count === queue.rear; 159 value = done ? undefined : queue[count]; 160 count = (count + 1) % queue.capacity;
|
/commonlibrary/ets_utils/js_util_module/container/plainarray/ |
D | js_plainarray.ts | 174 let count: number = 0; variable 179 done = count >= data.memberNumber; 180 … value = done ? undefined : [data.members.keys[count], data.members.values[count]] as [number, T]; 181 count++;
|
/commonlibrary/ets_utils/js_util_module/util/src/ |
D | util_js.ts | 55 function switchLittleObject(enter: string, obj: Object, count: number): string | Object { 60 str += '[ ' + arrayToString(enter, obj, count) + '[length]: ' + obj.length + ' ]'; 72 str += switchLittleValue(enter, i, obj, count); 87 function switchLittleValue(enter: string, protoName: string, obj: Object, count: number): string { 93 '[ ' + arrayToString(enter + ' ', obj[protoName], count) + '[length]: ' + 100 str += switchLittleObject(enter + ' ', obj[protoName], count + 1) + ',' + enter; 123 function arrayToString(enter: string, arr: Array<string | number | Fn>, count: number): string { 130 …if (arr[k] !== null && (typeof arr[k] === 'function' || typeof arr[k] === 'object') && count <= 2)… 139 str += switchLittleObject(enter + ' ', i, count + 1); 163 function switchBigObject(enter: string, obj: Object, count: number): string | Object { [all …]
|
/commonlibrary/ets_utils/js_util_module/container/stack/ |
D | js_stack.ts | 150 let count: number = 0; 156 done = count >= stack.elementNum; 157 value = done ? undefined : stack[count++];
|
/commonlibrary/ets_utils/js_util_module/container/struct/ |
D | js_struct.ts | 761 if (members instanceof LinkedList && members.count >= 8) { // 8 : means number 922 public count: number; 926 this.count = 0; 943 this.count++; 946 if (index >= 0 && index < this.count) { 958 this.count--; 965 if (index > 0 && index < this.count) { 975 if (index >= 0 && index <= this.count) { 989 this.count++; 996 for (let i: number = 0; i < this.count && current !== undefined; i++) { [all …]
|
/commonlibrary/ets_utils/js_util_module/util/ |
D | js_uuid.cpp | 212 unsigned char *count = static_cast<unsigned char*>(data); in DoParseUUID() local 214 *count = ConvertBits(buffer); in DoParseUUID() 215 count++; in DoParseUUID()
|
/commonlibrary/ets_utils/js_util_module/container/vector/ |
D | js_vector.ts | 360 let count: number = 0; 366 done = count >= vector.elementNum; 367 value = done ? undefined : vector[count++];
|
/commonlibrary/ets_utils/js_util_module/container/arraylist/ |
D | js_arraylist.ts | 313 let count: number = 0; 319 done = count >= arraylist.elementNum; 320 value = done ? undefined : arraylist[count++];
|
/commonlibrary/ets_utils/js_util_module/container/linkedlist/ |
D | js_linkedlist.ts | 408 let count: number = 0; 414 done = count >= linkedlist.elementNum; 415 value = done ? undefined : linkedlist.getNode(count++).element;
|