| OLD | NEW |
| 1 =pod | 1 =pod |
| 2 | 2 |
| 3 =head1 NAME | 3 =head1 NAME |
| 4 | 4 |
| 5 BIO_s_mem, BIO_set_mem_eof_return, BIO_get_mem_data, BIO_set_mem_buf, | 5 BIO_s_mem, BIO_set_mem_eof_return, BIO_get_mem_data, BIO_set_mem_buf, |
| 6 BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO | 6 BIO_get_mem_ptr, BIO_new_mem_buf - memory BIO |
| 7 | 7 |
| 8 =head1 SYNOPSIS | 8 =head1 SYNOPSIS |
| 9 | 9 |
| 10 #include <openssl/bio.h> | 10 #include <openssl/bio.h> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 made available from a static area of memory in the form of a BIO. The | 67 made available from a static area of memory in the form of a BIO. The |
| 68 supplied data is read directly from the supplied buffer: it is B<not> copied | 68 supplied data is read directly from the supplied buffer: it is B<not> copied |
| 69 first, so the supplied area of memory must be unchanged until the BIO is freed. | 69 first, so the supplied area of memory must be unchanged until the BIO is freed. |
| 70 | 70 |
| 71 =head1 NOTES | 71 =head1 NOTES |
| 72 | 72 |
| 73 Writes to memory BIOs will always succeed if memory is available: that is | 73 Writes to memory BIOs will always succeed if memory is available: that is |
| 74 their size can grow indefinitely. | 74 their size can grow indefinitely. |
| 75 | 75 |
| 76 Every read from a read write memory BIO will remove the data just read with | 76 Every read from a read write memory BIO will remove the data just read with |
| 77 an internal copy operation, if a BIO contains a lots of data and it is | 77 an internal copy operation, if a BIO contains a lot of data and it is |
| 78 read in small chunks the operation can be very slow. The use of a read only | 78 read in small chunks the operation can be very slow. The use of a read only |
| 79 memory BIO avoids this problem. If the BIO must be read write then adding | 79 memory BIO avoids this problem. If the BIO must be read write then adding |
| 80 a buffering BIO to the chain will speed up the process. | 80 a buffering BIO to the chain will speed up the process. |
| 81 | 81 |
| 82 =head1 BUGS | 82 =head1 BUGS |
| 83 | 83 |
| 84 There should be an option to set the maximum size of a memory BIO. | 84 There should be an option to set the maximum size of a memory BIO. |
| 85 | 85 |
| 86 There should be a way to "rewind" a read write BIO without destroying | 86 There should be a way to "rewind" a read write BIO without destroying |
| 87 its contents. | 87 its contents. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 106 | 106 |
| 107 BUF_MEM *bptr; | 107 BUF_MEM *bptr; |
| 108 BIO_get_mem_ptr(mem, &bptr); | 108 BIO_get_mem_ptr(mem, &bptr); |
| 109 BIO_set_close(mem, BIO_NOCLOSE); /* So BIO_free() leaves BUF_MEM alone */ | 109 BIO_set_close(mem, BIO_NOCLOSE); /* So BIO_free() leaves BUF_MEM alone */ |
| 110 BIO_free(mem); | 110 BIO_free(mem); |
| 111 | 111 |
| 112 | 112 |
| 113 =head1 SEE ALSO | 113 =head1 SEE ALSO |
| 114 | 114 |
| 115 TBA | 115 TBA |
| OLD | NEW |