BIO_nread0

Peek at readable bytes in a memory BIO without consuming them.

Synopsis

Declared in <openssl/bio.h>

int
BIO_nread0(
    BIO* bio,
    char** buf);

Return Value

Number of bytes available at *buf, or a negative value on error.

Parameters

NameDescription
bioMemory BIO to inspect.
bufReceives a pointer into the BIO's internal buffer (valid until the next modify).