test-bio.c | 32 size_t insz; member in struct:test_ctx 56 const unsigned char *in, size_t insz) 58 *buf = realloc (*buf, *bufsz + insz); 59 memcpy (*buf + *bufsz, in, insz); 60 *bufsz += insz; 70 ctx->insz = 0; 104 return buf_drain (&ctx->in, &ctx->insz, (unsigned char *) buf, sz); 155 return buf_fill (&c->in, &c->insz, buf, bufsz);
|