[#BIO_nread]
= BIO&lowbar;nread
:mrdocs:

Consume up to `num` bytes from a memory BIO, returning an internal pointer&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;nread(
    xref:BIO.adoc[BIO]* bio,
    char** buf,
    int num);
----

== Return Value

Number of bytes made available at &ast;`buf,` or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| Memory BIO to read from&period;
| *buf*
| Receives a pointer into the BIO&apos;s internal buffer (valid until the next modify)&period;
| *num*
| Maximum number of bytes to consume&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
