Lines Matching refs:sz
21 int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { in dns_label_unescape() argument
47 if (sz <= 0) in dns_label_unescape()
70 sz--; in dns_label_unescape()
103 sz--; in dns_label_unescape()
125 sz--; in dns_label_unescape()
140 if (sz >= 1 && d) in dns_label_unescape()
150 int dns_label_unescape_suffix(const char *name, const char **label_terminal, char *dest, size_t sz)… in dns_label_unescape_suffix() argument
160 if (sz >= 1) in dns_label_unescape_suffix()
198 r = dns_label_unescape(&name, dest, sz, 0); in dns_label_unescape_suffix()
207 int dns_label_escape(const char *p, size_t l, char *dest, size_t sz) { in dns_label_escape() argument
216 if (sz < 1) in dns_label_escape()
229 if (sz < 3) in dns_label_escape()
235 sz -= 2; in dns_label_escape()
244 if (sz < 2) in dns_label_escape()
248 sz -= 1; in dns_label_escape()
254 if (sz < 5) in dns_label_escape()
262 sz -= 4; in dns_label_escape()