Lines Matching refs:size
30 static int bio_read(BIO *bio, char *buf, int size);
67 size_t size; member
84 b->size = 17 * 1024; in bio_new()
111 size_t size = size_; in bio_read() local
129 if (buf == NULL || size == 0) in bio_read()
137 if (size <= peer_b->size) in bio_read()
138 peer_b->request = size; in bio_read()
143 peer_b->request = peer_b->size; in bio_read()
149 if (peer_b->len < size) in bio_read()
150 size = peer_b->len; in bio_read()
154 rest = size; in bio_read()
161 if (peer_b->offset + rest <= peer_b->size) in bio_read()
165 chunk = peer_b->size - peer_b->offset; in bio_read()
166 assert(peer_b->offset + chunk <= peer_b->size); in bio_read()
173 assert(peer_b->offset <= peer_b->size); in bio_read()
174 if (peer_b->offset == peer_b->size) in bio_read()
186 return size; in bio_read()
227 if (peer_b->size < peer_b->offset + num) in bio_nread0()
229 num = peer_b->size - peer_b->offset; in bio_nread0()
259 assert(peer_b->offset <= peer_b->size); in bio_nread()
260 if (peer_b->offset == peer_b->size) in bio_nread()
291 assert(b->len <= b->size); in bio_write()
293 if (b->len == b->size) { in bio_write()
299 if (num > b->size - b->len) in bio_write()
300 num = b->size - b->len; in bio_write()
311 assert(b->len + rest <= b->size); in bio_write()
314 if (write_offset >= b->size) in bio_write()
315 write_offset -= b->size; in bio_write()
318 if (write_offset + rest <= b->size) in bio_write()
322 chunk = b->size - write_offset; in bio_write()
328 assert(b->len <= b->size); in bio_write()
367 assert(b->len <= b->size); in bio_nwrite0()
369 if (b->len == b->size) { in bio_nwrite0()
374 num = b->size - b->len; in bio_nwrite0()
376 if (write_offset >= b->size) in bio_nwrite0()
377 write_offset -= b->size; in bio_nwrite0()
378 if (write_offset + num > b->size) in bio_nwrite0()
384 num = b->size - write_offset; in bio_nwrite0()
388 assert(write_offset + num <= b->size); in bio_nwrite0()
411 assert(b->len <= b->size); in bio_nwrite()
436 if (b->size != new_size) { in bio_ctrl()
439 b->size = new_size; in bio_ctrl()
446 ret = (long)b->size; in bio_ctrl()
477 ret = (long)b->size - b->len; in bio_ctrl()
572 other_b->size = b->size; in bio_ctrl()
622 b1->buf = OPENSSL_malloc(b1->size); in bio_make_pair()
630 b2->buf = OPENSSL_malloc(b2->size); in bio_make_pair()