In the documentation(http://www.openssl.org/docs/crypto/BIO_s_mem.html) I have read that: "Every read from a read write memory BIO will remove the data just read with an internal copy operation..."

Why does memory BIO use "internal copy operation" after reading? Why it does not use a ring buffer and only changes the pointers after read operation? It will be more faster.

And is it applicable to all BIO's types or only to Memory BIO?
For example, BIO_new_bio_pair. It creates two BIOs type of BIO_s_bio(). Is BIO_s_bio() similar to BIO_s_mem() in that sense that it uses "internal copy operation" after read or no?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to