/// <summary> /// Calls BIO_new_mem_buf() from the specified buffer. /// </summary> /// <param name="buf"></param> public BIO(byte[] buf) : base(Native.ExpectNonNull(Native.BIO_new_mem_buf(buf, buf.Length)), true) { }