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()
535 int retlen = 0, n, i, avail, modlen, needlen; in webSocketsDecodeHixie() local584 needlen = modlen; in webSocketsDecodeHixie()585 if (needlen % 4) { in webSocketsDecodeHixie()586 needlen += 4 - (needlen % 4); in webSocketsDecodeHixie()589 if (needlen > avail) { in webSocketsDecodeHixie()603 buf[needlen] = '\x00'; /* Replace end marker with end of string */ in webSocketsDecodeHixie()614 i = ws_read(cl, buf, needlen); in webSocketsDecodeHixie()