Obtain a writable buffer from a memory BIO and advance its write pointer.

Synopsis

Declared in <openssl/bio.h>

int
BIO_nwrite(
    BIO* bio,
    char** buf,
    int num);

Return Value

Number of bytes made 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.

num

Maximum number of bytes to reserve.

Created with MrDocs