Lines Matching refs:bd
140 struct buffer_data *bd; local
153 bd = cb->buf->data;
154 if (bd == NULL)
156 bd = ((struct buffer_data *) malloc (sizeof (struct buffer_data)));
157 if (bd == NULL)
159 bd->text = (char *) malloc (BUFFER_DATA_SIZE);
160 if (bd->text == NULL)
162 free (bd);
165 bd->bufp = bd->text;
166 bd->size = 0;
167 cb->buf->data = bd;
182 cb->zstr.avail_in = bd->size;
183 cb->zstr.next_in = (Bytef *) bd->bufp;
198 bd->size = cb->zstr.avail_in;
199 bd->bufp = (char *) cb->zstr.next_in;
215 assert (bd->size == 0);
224 status = (*cb->buf->input) (cb->buf->closure, bd->text,
239 bd->bufp = bd->text;
240 bd->size = nread;