Lines Matching defs:buffer
37 unsigned char *buffer;
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE);
57 ret->unconsumed = ret->buffer;
58 ret->read_end = ret->buffer;
59 ret->buffer_end = ret->buffer + maxRecordLen + HEADER_SIZE;
67 free(rs->buffer);
72 /* returns NULL; if there isn't a full record in the buffer */
102 /* one full line in the buffer */
134 /* is there one record already in the buffer? */
142 // if the buffer is full and we don't have a full record
143 if (p_rs->unconsumed == p_rs->buffer
153 if (p_rs->unconsumed != p_rs->buffer) {
154 // move remainder to the beginning of the buffer
159 memmove(p_rs->buffer, p_rs->unconsumed, toMove);
162 p_rs->read_end = p_rs->buffer + toMove;
163 p_rs->unconsumed = p_rs->buffer;
179 /* not enough of a buffer to for a whole command */