Lines Matching refs:size
98 static int bio_read(BIO *bio, char *buf, int size);
136 size_t size;
137 char *buf; /* "size" elements (if != NULL) */
142 * never more than buffer space (size-len) warrants. */
154 b->size = 17*1024; /* enough for one TLS record (just a default) */
189 size_t size = size_;
207 if (buf == NULL || size == 0)
217 if (size <= peer_b->size)
218 peer_b->request = size;
222 peer_b->request = peer_b->size;
228 if (peer_b->len < size)
229 size = peer_b->len;
231 /* now read "size" bytes */
233 rest = size;
241 if (peer_b->offset + rest <= peer_b->size)
245 chunk = peer_b->size - peer_b->offset;
246 assert(peer_b->offset + chunk <= peer_b->size);
254 assert(peer_b->offset <= peer_b->size);
255 if (peer_b->offset == peer_b->size)
269 return size;
308 if (peer_b->size < peer_b->offset + num)
310 num = peer_b->size - peer_b->offset;
341 assert(peer_b->offset <= peer_b->size);
342 if (peer_b->offset == peer_b->size)
376 assert(b->len <= b->size);
378 if (b->len == b->size)
385 if (num > b->size - b->len)
386 num = b->size - b->len;
398 assert(b->len + rest <= b->size);
401 if (write_offset >= b->size)
402 write_offset -= b->size;
405 if (write_offset + rest <= b->size)
409 chunk = b->size - write_offset;
415 assert(b->len <= b->size);
454 assert(b->len <= b->size);
456 if (b->len == b->size)
462 num = b->size - b->len;
464 if (write_offset >= b->size)
465 write_offset -= b->size;
466 if (write_offset + num > b->size)
470 num = b->size - write_offset;
474 assert(write_offset + num <= b->size);
497 assert(b->len <= b->size);
529 if (b->size != new_size)
536 b->size = new_size;
543 ret = (long) b->size;
570 ret = (long) b->size - b->len;
666 other_b->size = b->size;
722 b1->buf = OPENSSL_malloc(b1->size);
734 b2->buf = OPENSSL_malloc(b2->size);