Lines Matching refs:is

28 A memory BIO is a source/sink BIO which uses memory for its I/O. Data
29 written to a memory BIO is stored in a BUF_MEM structure which is extended
32 BIO_s_secmem() is like BIO_s_mem() except that the secure heap is used
35 BIO_s_dgram_mem() is a memory BIO that respects datagram semantics. A single
41 datagram. If a L<BIO_read(3)> call supplies a read buffer that is smaller than
45 It is not possible to write a zero length datagram. Calling L<BIO_write(3)> in
52 Unless the memory BIO is read only any data read from it is deleted from
61 If the BIO_CLOSE flag is set when a memory BIO is freed then the underlying
62 BUF_MEM structure is also freed.
65 flag BIO_FLAGS_NONCLEAR_RST is not set, otherwise it just restores the read
70 BIO_eof() is true if no data is in the BIO.
74 BIO_set_mem_eof_return() sets the behaviour of memory BIO B<b> when it is
75 empty. If the B<v> is zero then an empty memory BIO will return EOF (that is
76 it will return zero and BIO_should_retry(b) will be false. If B<v> is non
77 zero then it will return B<v> when it is empty and it will set the read retry
78 flag (that is BIO_read_retry(b) is true). To avoid ambiguity with a normal
83 and returns the total amount of data available. It is implemented as a macro.
84 Note the pointer returned by this call is informative, no transfer of ownership
85 of this memory is implied. See notes on BIO_set_close().
88 close flag to B<c>, that is B<c> should be either BIO_CLOSE or BIO_NOCLOSE.
89 It is a macro.
91 BIO_get_mem_ptr() places the underlying BUF_MEM structure in *B<pp>. It is
95 if B<len> is -1 then the B<buf> is assumed to be nul terminated and its
96 length is determined by B<strlen>. The BIO is set to a read only state and
97 as a result cannot be written to. This is useful when some data needs to be
99 supplied data is read directly from the supplied buffer: it is B<not> copied
100 first, so the supplied area of memory must be unchanged until the BIO is freed.
107 Writes to memory BIOs will always succeed if memory is available: that is
108 their size can grow indefinitely. An exception is BIO_s_dgram_mem() when
109 L<BIO_set_write_buf_size(3)> is called on it. In such case the write buffer
115 copy operation, if a BIO contains a lot of data and it is read in small
122 Switching a memory BIO from read write to read only is not supported and
124 exceptions to the rule. The first one is to assign a static memory buffer
127 The other supported sequence is to start with a read write BIO then temporarily
129 before switching it back to read write. Before the BIO is freed it must be
134 BIO is set to BIO_NOCLOSE, before freeing the BUF_MEM the data pointer
157 return 1 on success or a value which is less than or equal to 0 if an error occurred.
160 0 if b is NULL, or a negative value in case of other errors.