27 RCSIDH(lib_bio_buf_h,
"$Id: deae54c1bda80d1163fabb64e8db5e53373a10cb $")
58 #define fr_bio_buf_verify(_x)
70 return (bio_buf->
start != NULL);
86 return bio_buf->
end - bio_buf->
write;
95 return bio_buf->
write;
104 bio_buf->
write += size;
117 bio_buf->
write -= size;
131 static inline void CC_HINT(
nonnull) fr_bio_buf_write_update(
fr_bio_buf_t *bio_buf,
void const *
buffer,
size_t size,
size_t written)
155 return (bio_buf->
end - bio_buf->
start);
static int const char char buffer[256]
static bool fr_bio_buf_initialized(fr_bio_buf_t const *bio_buf)
static bool fr_bio_buf_contains(fr_bio_buf_t *bio_buf, void const *buffer)
size_t fr_bio_buf_read(fr_bio_buf_t *bio_buf, void *buffer, size_t size))
static void fr_bio_buf_init(fr_bio_buf_t *bio_buf, uint8_t *buffer, size_t size)
size_t fr_bio_buf_make_room(fr_bio_buf_t *bio_buf)
static size_t fr_bio_buf_write_room(fr_bio_buf_t const *bio_buf)
uint8_t * start
start of the buffer
static size_t fr_bio_buf_used(fr_bio_buf_t const *bio_buf)
uint8_t * end
end of the buffer
static void fr_bio_buf_reset(fr_bio_buf_t *bio_buf)
static void fr_bio_buf_verify(fr_bio_buf_t const *bio_buf)
uint8_t * read
where in the buffer reads are taken from
static void fr_bio_buf_write_undo(fr_bio_buf_t *bio_buf, size_t size)
static uint8_t * fr_bio_buf_write_reserve(fr_bio_buf_t *bio_buf, size_t size)
static int fr_bio_buf_write_alloc(fr_bio_buf_t *bio_buf, size_t size)
uint8_t * write
where in the buffer writes are sent to
int fr_bio_buf_alloc(TALLOC_CTX *ctx, fr_bio_buf_t *bio_buf, size_t size)
ssize_t fr_bio_buf_write(fr_bio_buf_t *bio_buf, const void *buffer, size_t size)
static size_t fr_bio_buf_size(fr_bio_buf_t const *bio_buf)