Lines Matching refs:len

103 void buffer_copy_string_len(buffer * restrict b, const char * restrict s, size_t len);
104 void buffer_copy_string_len_lc(buffer * restrict b, const char * restrict s, size_t len);
107 void buffer_append_string_len(buffer * restrict b, const char * restrict s, size_t len);
122 #define buffer_append_uint_hex(b,len) buffer_append_uint_hex_lc((b),(len)) argument
124 void buffer_append_uint_hex_lc(buffer *b, uintmax_t len);
147 int buffer_eq_icase_ssn(const char * const a, const char * const b, const size_t len);
166 void buffer_substr_replace (buffer * restrict b, size_t offset, size_t len, const buffer * restrict…
169 void buffer_append_string_encoded_hex_lc(buffer * restrict b, const char * restrict s, size_t len);
171 void buffer_append_string_encoded_hex_uc(buffer * restrict b, const char * restrict s, size_t len);
187 void buffer_append_bs_escaped (buffer * restrict b, const char * restrict s, size_t len);
188 void buffer_append_bs_escaped_json (buffer * restrict b, const char * restrict s, size_t len);
210 int li_hex2bin (unsigned char *bin, size_t binlen, const char *hexstr, size_t len);
308 static inline void buffer_truncate(buffer *b, uint32_t len);
309 static inline void buffer_truncate(buffer *b, uint32_t len) { in buffer_truncate() argument
310 b->ptr[len] = '\0'; /* b->ptr must exist; use buffer_blank() for trunc 0 */ in buffer_truncate()
311 b->used = len + 1; in buffer_truncate()
330 const uint32_t len = buffer_clen(b); in buffer_append_slash() local
331 if (len > 0 && '/' != b->ptr[len-1]) in buffer_append_slash()
398 static inline void buffer_string_set_length(buffer *b, uint32_t len);
399 static inline void buffer_string_set_length(buffer *b, uint32_t len) { in buffer_string_set_length() argument
400 if (len < b->size) in buffer_string_set_length()
401 buffer_truncate(b, len); in buffer_string_set_length()
403 buffer_extend(b, len - buffer_clen(b)); in buffer_string_set_length()