Lines Matching defs:buf
26 * You can leave buf NULL, if so it will be allocated on the heap once the
29 * Or you can ensure no allocation and use an external buffer by setting buf
30 * and lim. But buf must be in the ep context somehow, since it may have to
33 * Or you can set buf to an externally allocated buffer, in which case you may
50 uint8_t *buf;
61 buf = lws_mqtt_str_next(*ms, NULL);
64 lws_strnncpy((char *)buf, client_id, len, len + 1);
66 __func__, (const char *)buf);
77 buf[n] = code[ran[n] % 62];
78 buf[len] = '\0';
91 lws_read_mqtt(struct lws *wsi, unsigned char *buf, lws_filepos_t len)
95 return _lws_mqtt_rx_parser(wsi, &c->par, buf, (size_t)len);
118 (const char *)c->id->buf);