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

Name

Description

bio

Memory BIO to write into.

buf

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

Created with MrDocs