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

Name

Description

bio

Memory BIO to inspect.

buf

Receives a pointer into the BIO's internal buffer (valid until the next modify).

Created with MrDocs