Home | History | Annotate | Line # | Download | only in man3
      1  1.1  christos =pod
      2  1.1  christos 
      3  1.1  christos =head1 NAME
      4  1.1  christos 
      5  1.1  christos BIO_f_readbuffer
      6  1.1  christos - read only buffering BIO that supports BIO_tell() and BIO_seek()
      7  1.1  christos 
      8  1.1  christos =head1 SYNOPSIS
      9  1.1  christos 
     10  1.1  christos  #include <openssl/bio.h>
     11  1.1  christos 
     12  1.1  christos  const BIO_METHOD *BIO_f_readbuffer(void);
     13  1.1  christos 
     14  1.1  christos =head1 DESCRIPTION
     15  1.1  christos 
     16  1.1  christos BIO_f_readbuffer() returns the read buffering BIO method.
     17  1.1  christos 
     18  1.1  christos This BIO filter can be inserted on top of BIO's that do not support BIO_tell()
     19  1.1  christos or BIO_seek() (e.g. A file BIO that uses stdin).
     20  1.1  christos 
     21  1.1  christos Data read from a read buffering BIO comes from an internal buffer which is
     22  1.1  christos filled from the next BIO in the chain.
     23  1.1  christos 
     24  1.1  christos BIO_gets() is supported for read buffering BIOs.
     25  1.1  christos Writing data to a read buffering BIO is not supported.
     26  1.1  christos 
     27  1.1  christos Calling BIO_reset() on a read buffering BIO does not clear any buffered data.
     28  1.1  christos 
     29  1.1  christos =head1 NOTES
     30  1.1  christos 
     31  1.1  christos Read buffering BIOs implement BIO_read_ex() by using BIO_read_ex() operations
     32  1.1  christos on the next BIO (e.g. a file BIO) in the chain and storing the result in an
     33  1.1  christos internal buffer, from which bytes are given back to the caller as appropriate
     34  1.1  christos for the call. BIO_read_ex() is guaranteed to give the caller the number of bytes
     35  1.1  christos it asks for, unless there's an error or end of communication is reached in the
     36  1.1  christos next BIO. The internal buffer can grow to cache the entire contents of the next
     37  1.1  christos BIO in the chain. BIO_seek() uses the internal buffer, so that it can only seek
     38  1.1  christos into data that is already read.
     39  1.1  christos 
     40  1.1  christos =head1 RETURN VALUES
     41  1.1  christos 
     42  1.1  christos BIO_f_readbuffer() returns the read buffering BIO method.
     43  1.1  christos 
     44  1.1  christos =head1 SEE ALSO
     45  1.1  christos 
     46  1.1  christos L<bio(7)>,
     47  1.1  christos L<BIO_read(3)>,
     48  1.1  christos L<BIO_gets(3)>,
     49  1.1  christos L<BIO_reset(3)>,
     50  1.1  christos L<BIO_ctrl(3)>.
     51  1.1  christos 
     52  1.1  christos =head1 COPYRIGHT
     53  1.1  christos 
     54  1.1  christos Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
     55  1.1  christos 
     56  1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     57  1.1  christos this file except in compliance with the License.  You can obtain a copy
     58  1.1  christos in the file LICENSE in the source distribution or at
     59  1.1  christos L<https://www.openssl.org/source/license.html>.
     60  1.1  christos 
     61  1.1  christos =cut
     62