BIO_nwrite0

Obtain a writable buffer from a memory BIO without advancing the write pointer.

Synopsis

Declared in <openssl/bio.h>

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

Description

Call BIO_nwrite() afterward to commit written bytes, or use BIO_nwrite() directly.

Return Value

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

Parameters

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