Lines Matching +full:xlen +full:- +full:1
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 nm = m->next; in data_free()
15 free(m->ref); in data_free()
24 struct data data_grow_for(struct data d, unsigned int xlen) in data_grow_for() argument
29 if (xlen == 0) in data_grow_for()
34 newsize = xlen; in data_grow_for()
36 while ((d.len + xlen) > newsize) in data_grow_for()
63 d = data_grow_for(d, len + 1); in data_copy_escape_string()
87 if (maxlen == (size_t)-1) in data_copy_file()
90 chunksize = maxlen - d.len; in data_copy_file()
93 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
119 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker()
120 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
124 m = m->next; in data_insert_at_marker()
126 m->offset += len; in data_insert_at_marker()
136 mp = &((*mp)->next); in data_append_markers()
150 m2->offset += d1.len; in data_merge()
168 return data_append_data(d, &value_8, 1); in data_append_integer()
209 return data_append_data(d, &byte, 1); in data_append_byte()
224 return data_append_zeroes(d, newlen - d.len); in data_append_align()
232 m->offset = d.len; in data_add_marker()
233 m->type = type; in data_add_marker()
234 m->ref = ref; in data_add_marker()
235 m->next = NULL; in data_add_marker()
248 for (i = 0; i < len-1; i++) in data_is_one_string()
252 if (d.val[len-1] != '\0') in data_is_one_string()