Lines Matching refs:size_t
49 static char* buffer_realloc(buffer * const restrict b, const size_t len) { in __attribute_nonnull__()
51 size_t sz = (len + 1 + BUFFER_PIECE_SIZE-1) & ~(BUFFER_PIECE_SIZE-1); in __attribute_nonnull__()
55 const size_t psz = sz; in __attribute_nonnull__()
71 static char* buffer_alloc_replace(buffer * const restrict b, const size_t size) { in __attribute_nonnull__()
78 const size_t bsize2x = (b->size & ~1uL) << 1; in __attribute_nonnull__()
82 char* buffer_string_prepare_copy(buffer * const b, const size_t size) { in buffer_string_prepare_copy()
96 static char* buffer_string_prepare_append_resize(buffer * const restrict b, const size_t size) { in __attribute_nonnull__()
105 const size_t bsize2x = (b->size & ~1uL) << 1; in __attribute_nonnull__()
106 const size_t req_size = (bsize2x - b->used > size) in __attribute_nonnull__()
116 char* buffer_string_prepare_append(buffer * const b, const size_t size) { in buffer_string_prepare_append()
126 buffer_extend (buffer * const b, const size_t x) in buffer_extend()
146 void buffer_commit(buffer *b, size_t size) in buffer_commit()
148 size_t sz = b->used; in buffer_commit()
167 void buffer_copy_string_len(buffer * const restrict b, const char * const restrict s, const size_t … in buffer_copy_string_len()
193 …fer_append_string_len(buffer * const restrict b, const char * const restrict s, const size_t len) { in buffer_append_string_len()
197 …er * const restrict b, const char * const s1, const size_t len1, const char * const s2, const size… in buffer_append_str2()
207 …, const char * const s1, const size_t len1, const char * const s2, const size_t len2, const char *… in buffer_append_str3()
218 …fer_append_iovec(buffer * const restrict b, const struct const_iovec * const iov, const size_t n) { in buffer_append_iovec()
219 size_t len = 0; in buffer_append_iovec()
220 for (size_t i = 0; i < n; ++i) in buffer_append_iovec()
223 for (size_t i = 0; i < n; ++i) { in buffer_append_iovec()
234 void buffer_append_path_len(buffer * restrict b, const char * restrict a, size_t alen) { in buffer_append_path_len()
256 … const restrict b, const char * const restrict s1, size_t len1, const char * const restrict s2, si… in buffer_copy_path_len2()
266 buffer_copy_string_len_lc (buffer * const restrict b, const char * const restrict s, const size_t l… in buffer_copy_string_len_lc()
271 for (size_t i = 0; i < len; ++i) in buffer_copy_string_len_lc()
332 size_t rv = strftime(buffer_string_prepare_append(b, 63), 64, format, tm); in buffer_append_strftime()
348 size_t li_itostrn(char *buf, size_t buf_len, intmax_t val) { in li_itostrn()
351 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_itostrn()
357 size_t li_utostrn(char *buf, size_t buf_len, uintmax_t val) { in li_utostrn()
360 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_utostrn()
380 int li_hex2bin (unsigned char * const bin, const size_t binlen, const char * const hexstr, const si… in li_hex2bin()
401 int buffer_eq_icase_ssn(const char * const a, const char * const b, const size_t len) { in buffer_eq_icase_ssn()
402 for (size_t i = 0; i < len; ++i) { in buffer_eq_icase_ssn()
410 int buffer_eq_icase_ss(const char * const a, const size_t alen, const char * const b, const size_t … in buffer_eq_icase_ss()
415 int buffer_eq_icase_slen(const buffer * const b, const char * const s, const size_t slen) { in buffer_eq_icase_slen()
421 int buffer_eq_slen(const buffer * const b, const char * const s, const size_t slen) { in buffer_eq_slen()
438 void li_tohex_lc(char * const restrict buf, size_t buf_len, const char * const restrict s, size_t s… in li_tohex_lc()
442 for (size_t i = 0; i < s_len; ++i) { in li_tohex_lc()
449 void li_tohex_uc(char * const restrict buf, size_t buf_len, const char * const restrict s, size_t s… in li_tohex_uc()
453 for (size_t i = 0; i < s_len; ++i) { in li_tohex_uc()
461 void buffer_substr_replace (buffer * const restrict b, const size_t offset, in buffer_substr_replace()
462 const size_t len, const buffer * const restrict replace) in buffer_substr_replace()
464 const size_t blen = buffer_clen(b); in buffer_substr_replace()
465 const size_t rlen = buffer_clen(replace); in buffer_substr_replace()
481 …ppend_string_encoded_hex_lc(buffer * const restrict b, const char * const restrict s, size_t len) { in buffer_append_string_encoded_hex_lc()
483 for (size_t i = 0; i < len; ++i) { in buffer_append_string_encoded_hex_lc()
489 …ppend_string_encoded_hex_uc(buffer * const restrict b, const char * const restrict s, size_t len) { in buffer_append_string_encoded_hex_uc()
491 for (size_t i = 0; i < len; ++i) { in buffer_append_string_encoded_hex_uc()
590 void buffer_append_string_encoded(buffer * const restrict b, const char * const restrict s, size_t … in buffer_append_string_encoded()
592 size_t d_len, ndx; in buffer_append_string_encoded()
660 …r_append_string_c_escaped(buffer * const restrict b, const char * const restrict s, size_t s_len) { in buffer_append_string_c_escaped()
662 size_t d_len, ndx; in buffer_append_string_c_escaped()
717 const char * restrict s, const size_t len) in buffer_append_bs_escaped()
769 const char * restrict s, const size_t len) in buffer_append_bs_escaped_json()
823 const size_t len = buffer_clen(b); in buffer_urldecode_path()