Go to the documentation of this file.
66 #include "../internal.h"
72 const size_t size =
len < 0 ? strlen((
char *)
buf) : (size_t)
len;
86 b->data = (
void *)
buf;
113 bio->
ptr = (
char *)
b;
138 if (
b->length < INT_MAX &&
ret > (
int)
b->length) {
150 }
else if (
b->length == 0) {
173 if (INT_MAX - blen < inl) {
204 for (
i = 0;
i < j;
i++) {
229 if (
b->data != NULL) {
232 b->data -=
b->max -
b->length;
250 *pptr = (
char *)&
b->data[0];
306 *out_len =
b->length;
static int mem_new(BIO *bio)
#define BIO_CTRL_WPENDING
long BIO_get_mem_data(BIO *bio, char **contents)
int BIO_get_mem_ptr(BIO *bio, BUF_MEM **out)
static const BIO_METHOD mem_method
#define OPENSSL_PUT_ERROR(library, reason)
static int mem_write(BIO *bio, const char *in, int inl)
static int mem_free(BIO *bio)
#define BIO_FLAGS_MEM_RDONLY
static void * OPENSSL_memset(void *dst, int c, size_t n)
static long mem_ctrl(BIO *bio, int cmd, long num, void *ptr)
const BIO_METHOD * method
#define BIO_C_SET_BUF_MEM_EOF_RETURN
#define BIO_R_NULL_PARAMETER
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
BIO * BIO_new_mem_buf(const void *buf, int len)
#define BIO_C_GET_BUF_MEM_PTR
int BIO_set_mem_eof_return(BIO *bio, int eof_value)
#define BUF_MEM_grow_clean
#define BIO_CTRL_GET_CLOSE
#define BIO_R_WRITE_TO_READ_ONLY_BIO
#define BIO_C_SET_BUF_MEM
#define BIO_CTRL_SET_CLOSE
int BIO_set_mem_buf(BIO *bio, BUF_MEM *b, int take_ownership)
UniquePtr< SSL_SESSION > ret
static void * OPENSSL_memmove(void *dst, const void *src, size_t n)
static int mem_gets(BIO *bio, char *buf, int size)
static int mem_read(BIO *bio, char *out, int outl)
#define BIO_set_retry_read
if(p->owned &&p->wrapped !=NULL)
int BIO_mem_contents(const BIO *bio, const uint8_t **out_contents, size_t *out_len)
#define BIO_clear_retry_flags
const BIO_METHOD * BIO_s_mem(void)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:48