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()
361 size_t size; in nxt_conf_create_array() local
364 size = sizeof(nxt_conf_value_t) in nxt_conf_create_array()
368 value = nxt_mp_get(mp, size); in nxt_conf_create_array()
589 ssize_t size; in nxt_conf_map_object() member
646 ptr->size = num; in nxt_conf_map_object()
1015 size_t size; in nxt_conf_copy_array() local
1032 size = sizeof(nxt_conf_array_t) + count * sizeof(nxt_conf_value_t); in nxt_conf_copy_array()
1034 dst->u.array = nxt_mp_get(mp, size); in nxt_conf_copy_array()
1115 size_t size; in nxt_conf_copy_object() local
1133 size = sizeof(nxt_conf_object_t) in nxt_conf_copy_object()
1136 dst->u.object = nxt_mp_get(mp, size); in nxt_conf_copy_object()
1696 nxt_conf_object_hash_alloc(void *data, size_t size) in nxt_conf_object_hash_alloc() argument
1698 return nxt_mp_align(data, size, size); in nxt_conf_object_hash_alloc()
1822 size_t size, surplus; in nxt_conf_json_parse_string() local
1939 size = last - start - surplus; in nxt_conf_json_parse_string()
1941 if (size > NXT_CONF_MAX_SHORT_STRING) { in nxt_conf_json_parse_string()
1943 if (nxt_slow_path(size > NXT_CONF_MAX_STRING)) { in nxt_conf_json_parse_string()
1955 value->u.string.start = nxt_mp_nget(mp, size); in nxt_conf_json_parse_string()
1960 value->u.string.length = size; in nxt_conf_json_parse_string()
1966 value->u.str.length = size; in nxt_conf_json_parse_string()
1972 nxt_memcpy(s, start, size); in nxt_conf_json_parse_string()
2067 if (size > NXT_CONF_MAX_SHORT_STRING) { in nxt_conf_json_parse_string()
2083 size_t size; in nxt_conf_json_parse_number() local
2167 size = p - start; in nxt_conf_json_parse_number()
2169 if (size > NXT_CONF_MAX_NUMBER_LEN) { in nxt_conf_json_parse_number()
2178 nxt_memcpy(value->u.number, start, size); in nxt_conf_json_parse_number()
2179 value->u.number[size] = '\0'; in nxt_conf_json_parse_number()
2528 nxt_conf_json_escape_length(u_char *p, size_t size) in nxt_conf_json_escape_length() argument
2533 len = size; in nxt_conf_json_escape_length()
2535 while (size) { in nxt_conf_json_escape_length()
2557 size--; in nxt_conf_json_escape_length()
2565 nxt_conf_json_escape(u_char *dst, u_char *src, size_t size) in nxt_conf_json_escape() argument
2569 while (size) { in nxt_conf_json_escape()
2614 size--; in nxt_conf_json_escape()