Searched refs:needlen (Results 1 – 2 of 2) sorted by relevance
38 int needlen; in append_string() local43 needlen = s->end + len + 1; in append_string()44 if (needlen > s->len) { in append_string()47 if (s->len * 2 > needlen) in append_string()48 needlen = s->len * 2; in append_string()49 n = realloc(s->s, needlen); in append_string()53 s->len = needlen; in append_string()
521 int retlen = 0, n, i, avail, modlen, needlen; in webSocketsDecodeHixie() local570 needlen = modlen; in webSocketsDecodeHixie()571 if (needlen % 4) { in webSocketsDecodeHixie()572 needlen += 4 - (needlen % 4); in webSocketsDecodeHixie()575 if (needlen > avail) { in webSocketsDecodeHixie()589 buf[needlen] = '\x00'; /* Replace end marker with end of string */ in webSocketsDecodeHixie()600 i = ws_read(cl, buf, needlen); in webSocketsDecodeHixie()