Lines Matching refs:size

114 static void *nxt_conf_object_hash_alloc(void *data, size_t size);
143 static size_t nxt_conf_json_escape_length(u_char *p, size_t size);
144 static u_char *nxt_conf_json_escape(u_char *dst, u_char *src, size_t size);
246 size_t size; in nxt_conf_create_object() local
249 size = sizeof(nxt_conf_value_t) in nxt_conf_create_object()
253 value = nxt_mp_get(mp, size); in nxt_conf_create_object()
347 size_t size; in nxt_conf_create_array() local
350 size = sizeof(nxt_conf_value_t) in nxt_conf_create_array()
354 value = nxt_mp_get(mp, size); in nxt_conf_create_array()
575 ssize_t size; in nxt_conf_map_object() member
632 ptr->size = num; in nxt_conf_map_object()
1001 size_t size; in nxt_conf_copy_array() local
1018 size = sizeof(nxt_conf_array_t) + count * sizeof(nxt_conf_value_t); in nxt_conf_copy_array()
1020 dst->u.array = nxt_mp_get(mp, size); in nxt_conf_copy_array()
1101 size_t size; in nxt_conf_copy_object() local
1119 size = sizeof(nxt_conf_object_t) in nxt_conf_copy_object()
1122 dst->u.object = nxt_mp_get(mp, size); in nxt_conf_copy_object()
1682 nxt_conf_object_hash_alloc(void *data, size_t size) in nxt_conf_object_hash_alloc() argument
1684 return nxt_mp_align(data, size, size); in nxt_conf_object_hash_alloc()
1808 size_t size, surplus; in nxt_conf_json_parse_string() local
1925 size = last - start - surplus; in nxt_conf_json_parse_string()
1927 if (size > NXT_CONF_MAX_SHORT_STRING) { in nxt_conf_json_parse_string()
1929 if (nxt_slow_path(size > NXT_CONF_MAX_STRING)) { in nxt_conf_json_parse_string()
1941 value->u.string.start = nxt_mp_nget(mp, size); in nxt_conf_json_parse_string()
1946 value->u.string.length = size; in nxt_conf_json_parse_string()
1952 value->u.str.length = size; in nxt_conf_json_parse_string()
1958 nxt_memcpy(s, start, size); in nxt_conf_json_parse_string()
2053 if (size > NXT_CONF_MAX_SHORT_STRING) { in nxt_conf_json_parse_string()
2069 size_t size; in nxt_conf_json_parse_number() local
2153 size = p - start; in nxt_conf_json_parse_number()
2155 if (size > NXT_CONF_MAX_NUMBER_LEN) { in nxt_conf_json_parse_number()
2164 nxt_memcpy(value->u.number, start, size); in nxt_conf_json_parse_number()
2165 value->u.number[size] = '\0'; in nxt_conf_json_parse_number()
2514 nxt_conf_json_escape_length(u_char *p, size_t size) in nxt_conf_json_escape_length() argument
2519 len = size; in nxt_conf_json_escape_length()
2521 while (size) { in nxt_conf_json_escape_length()
2543 size--; in nxt_conf_json_escape_length()
2551 nxt_conf_json_escape(u_char *dst, u_char *src, size_t size) in nxt_conf_json_escape() argument
2555 while (size) { in nxt_conf_json_escape()
2600 size--; in nxt_conf_json_escape()