Lines Matching refs:buf
20 #define SPACE(buf, pos, n) (sizeof(buf) - (pos) > (n)) argument
33 char buf[288 + 1]; in BIO_dump_indent_cb() local
48 n = BIO_snprintf(buf, sizeof(buf), "%*s%04x - ", indent, "", in BIO_dump_indent_cb()
51 if (SPACE(buf, n, 3)) { in BIO_dump_indent_cb()
53 strcpy(buf + n, " "); in BIO_dump_indent_cb()
56 BIO_snprintf(buf + n, 4, "%02x%c", ch, in BIO_dump_indent_cb()
62 if (SPACE(buf, n, 2)) { in BIO_dump_indent_cb()
63 strcpy(buf + n, " "); in BIO_dump_indent_cb()
69 if (SPACE(buf, n, 1)) { in BIO_dump_indent_cb()
72 buf[n++] = ((ch >= ' ') && (ch <= '~')) ? ch : '.'; in BIO_dump_indent_cb()
74 buf[n++] = ((ch >= os_toascii[' ']) && (ch <= os_toascii['~'])) in BIO_dump_indent_cb()
78 buf[n] = '\0'; in BIO_dump_indent_cb()
81 if (SPACE(buf, n, 1)) { in BIO_dump_indent_cb()
82 buf[n++] = '\n'; in BIO_dump_indent_cb()
83 buf[n] = '\0'; in BIO_dump_indent_cb()
89 res = cb((void *)buf, n, u); in BIO_dump_indent_cb()