Binary IO abstractions for buffers.
More...
Go to the source code of this file.
|
int | fr_bio_buf_alloc (TALLOC_CTX *ctx, fr_bio_buf_t *bio_buf, size_t size) |
|
static bool | fr_bio_buf_contains (fr_bio_buf_t *bio_buf, void const *buffer) |
|
static void | fr_bio_buf_init (fr_bio_buf_t *bio_buf, uint8_t *buffer, size_t size) |
|
static bool | fr_bio_buf_initialized (fr_bio_buf_t const *bio_buf) |
|
size_t | fr_bio_buf_make_room (fr_bio_buf_t *bio_buf) |
|
size_t | fr_bio_buf_read (fr_bio_buf_t *bio_buf, void *buffer, size_t size)) |
|
static void | fr_bio_buf_reset (fr_bio_buf_t *bio_buf) |
|
static size_t | fr_bio_buf_size (fr_bio_buf_t const *bio_buf) |
|
static size_t | fr_bio_buf_used (fr_bio_buf_t const *bio_buf) |
|
static void | fr_bio_buf_verify (fr_bio_buf_t const *bio_buf) |
|
ssize_t | fr_bio_buf_write (fr_bio_buf_t *bio_buf, const void *buffer, size_t size) |
|
static int | fr_bio_buf_write_alloc (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 size_t | fr_bio_buf_write_room (fr_bio_buf_t const *bio_buf) |
|
static void | fr_bio_buf_write_undo (fr_bio_buf_t *bio_buf, size_t size) |
|
Binary IO abstractions for buffers.
- Id
- deae54c1bda80d1163fabb64e8db5e53373a10cb
The fr_bio_buf_t allows readers and writers to use a shared buffer, without overflow.
- Copyright
- 2024 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file buf.h.
◆ fr_bio_buf_t
Definition at line 29 of file buf.h.
Data Fields |
uint8_t * |
end |
end of the buffer |
uint8_t * |
read |
where in the buffer reads are taken from |
uint8_t * |
start |
start of the buffer |
uint8_t * |
write |
where in the buffer writes are sent to |
◆ fr_bio_buf_alloc()
◆ fr_bio_buf_contains()
◆ fr_bio_buf_init()
Definition at line 37 of file buf.h.
◆ fr_bio_buf_initialized()
Definition at line 68 of file buf.h.
◆ fr_bio_buf_make_room()
Definition at line 28 of file buf.c.
◆ fr_bio_buf_read()
Definition at line 45 of file buf.c.
◆ fr_bio_buf_reset()
Definition at line 61 of file buf.h.
◆ fr_bio_buf_size()
◆ fr_bio_buf_used()
Definition at line 73 of file buf.h.
◆ fr_bio_buf_verify()
static void fr_bio_buf_verify |
( |
fr_bio_buf_t const * |
bio_buf | ) |
|
|
inlinestatic |
Definition at line 50 of file buf.h.
◆ fr_bio_buf_write()
Definition at line 81 of file buf.c.
◆ fr_bio_buf_write_alloc()
Definition at line 98 of file buf.h.
◆ fr_bio_buf_write_reserve()
Definition at line 89 of file buf.h.
◆ fr_bio_buf_write_room()
Definition at line 82 of file buf.h.
◆ fr_bio_buf_write_undo()