BUF_MEM_new_ex
if ((bb->buf = BUF_MEM_new_ex(flags)) == NULL) {
BUF_MEM *BUF_MEM_new_ex(unsigned long flags);