Lines Matching refs:pos
52 uint16_t len = 0U, pos = 0U; in findcrlf() local
54 while (buf && buf->len && !is_crlf(*(buf->data + pos))) { in findcrlf()
55 if (pos + 1 >= buf->len) { in findcrlf()
58 pos = 0U; in findcrlf()
60 pos++; in findcrlf()
64 if (buf && buf->len && is_crlf(*(buf->data + pos))) { in findcrlf()
65 len += pos; in findcrlf()
66 *offset = pos; in findcrlf()
76 int pos = 0; in starts_with() local
79 if (*(buf->data + pos) == *str) { in starts_with()
81 pos++; in starts_with()
82 if (pos >= buf->len) { in starts_with()
84 pos = 0; in starts_with()