Lines Matching refs:dlen
262 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern() argument
276 ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, in bio_read_intern()
285 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern()
292 dlen, 0, 0L, ret, readbytes); in bio_read_intern()
295 if (ret > 0 && *readbytes > dlen) { in bio_read_intern()
303 int BIO_read(BIO *b, void *data, int dlen) in BIO_read() argument
308 if (dlen < 0) in BIO_read()
311 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read()
321 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex() argument
323 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex()
326 static int bio_write_intern(BIO *b, const void *data, size_t dlen, in bio_write_intern() argument
347 ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, in bio_write_intern()
356 ret = b->method->bwrite(b, data, dlen, &local_written); in bio_write_intern()
363 dlen, 0, 0L, ret, &local_written); in bio_write_intern()
370 int BIO_write(BIO *b, const void *data, int dlen) in BIO_write() argument
375 if (dlen <= 0) in BIO_write()
378 ret = bio_write_intern(b, data, (size_t)dlen, &written); in BIO_write()
388 int BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written) in BIO_write_ex() argument
390 return bio_write_intern(b, data, dlen, written) > 0 in BIO_write_ex()
391 || (b != NULL && dlen == 0); /* order is important for *written */ in BIO_write_ex()