Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
BUF_MEM_new, BUF_MEM_free, BUF_MEM_grow, BUF_MEM_grow_clean — simple character arrays structureSYNOPSIS
#include <openssl/buffer.h>BUF_MEM_new(void);
BUF_MEM_free(BUF_MEM *a);
BUF_MEM_grow(BUF_MEM *str, size_t len);
BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
DESCRIPTION
The buffer library handles simple character arrays. Buffers are used for various purposes in the library, most notably memory BIOs.typedef struct buf_mem_st { size_t length; /* current number of bytes */ char *data; size_t max; /* size of buffer */ } BUF_MEM;