[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-dev
Subject:    Why does memory BIO use "internal copy operation" after reading?
From:       "Vladimir Belov" <ml.vladimbelov () gmail ! com>
Date:       2011-06-30 19:08:21
Message-ID: 60003BED407A479EBAFEAFD8655329F2 () HOUSE
[Download RAW message or body]

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
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majordomo@openssl.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic