Sortix main manual
This manual documents Sortix main. 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, BUF_reverse, BUF_strdup — 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);
BUF_reverse(unsigned char *out, const unsigned char *in, size_t len);
BUF_strdup(const char *str);
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;