[#BIO_nread0]
= BIO&lowbar;nread0
:mrdocs:

Peek at readable bytes in a memory BIO without consuming them&period;

== Synopsis

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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| Memory BIO to inspect&period;
| *buf*
| Receives a pointer into the BIO&apos;s internal buffer (valid until the next modify)&period;
|===


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