Lines Matching defs:len

61     size_t len;
64 len = strlen(str) + 1;
65 copy = (char *)cJSON_malloc(pAllocator, len);
67 memcpy(copy, str, len);
260 int len = 0;
267 while (*ptr != '\"' && *ptr && ++len)
270 out = (char *)cJSON_malloc(item->pAllocator, len + 1); /* This is how long we need for the string, roughly. */
314 len = 4;
316 len = 1;
318 len = 2;
320 len = 3;
321 ptr2 += len;
323 for (size_t i = len; i > 0; i--) {
325 *--ptr2 = ((unsigned char)uc | firstByteMark[len]);
331 ptr2 += len;
352 size_t out_buf_size, len = 0, flag = 0;
357 len = ptr - str;
358 out_buf_size = len + 1;
359 // out_buf_size = len + 3; // Modified to not put quotes around the string
368 // ptr2[len] = '\"'; // Modified to not put quotes around the string
369 ptr2[len] = 0; // ptr2[len + 1] = 0; // Modified to not put quotes around the string
385 while (token && ++len) {
387 len++;
389 len += 5;
394 out_buf_size = len + 1;
395 // out_buf_size = len + 3; // Modified to not put quotes around the string
636 size_t len = 5;
665 len = fmt ? 2 : 1;
666 ptr = ensure(item->pAllocator, p, len + 1);
671 p->offset += len;
691 len += strlen(ret) + 2 + (fmt ? 1 : 0);
698 if (!fail) out = (char *)cJSON_malloc(item->pAllocator, len);
794 size_t tmplen = 0, i = 0, len = 7;
817 len = fmt ? 2 : 1;
818 ptr = ensure(item->pAllocator, p, len + 1);
823 p->offset += len;
836 len = fmt ? 2 : 1;
837 ptr = ensure(item->pAllocator, p, len);
841 p->offset += len;
846 len = (fmt ? 1 : 0) + (child->next ? 1 : 0);
847 ptr = ensure(item->pAllocator, p, len + 1);
852 p->offset += len;
877 if (fmt) len += depth;
882 len += strlen(ret) + strlen(str) + 2 + (fmt ? 2 + depth : 0);
889 if (!fail) out = (char *)cJSON_malloc(item->pAllocator, len);
917 loader_strncpy(ptr, len - (ptr - out), entries[j], entries_size);
957 size_t len;
992 len = ftell(file);
994 json_buf = (char *)loader_instance_heap_calloc(inst, len + 1, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
997 "loader_get_json: Failed to allocate space for JSON file %s buffer of length %lu", filename, len);
1001 if (fread(json_buf, sizeof(char), len, file) != len) {
1006 json_buf[len] = '\0';
1009 if (len == 0) {