|
Simple tools for networking / objects in plain C Snapshot
|
Go to the source code of this file.
Functions | |
| int | BF_compact (BF *bf) |
| moves get_pos to start position; moves content between get_pos and put_pos if not empty.a Always succeeds returns 0 if bytes were moved, 1 if buffer was empty to begin with. | |
| char * | BF_get_line (BF *bf, int eof) |
| char * | BF_get_line_ext (BF *bf, const char *eof_line, size_t eof_line_size) |
| int | BF_check (BF *bf) |
| validates a buffer - checks all invariants. | |
| int | BF_set_start (BF *bf, size_t pos) |
| set start position, position is relative to start of memory range. | |
| int | BF_set_end (BF *bf, size_t pos) |
| set end position, position is relative to start of memory range. | |
| int | BF_set_get (BF *bf, size_t pos) |
| set get position, position is relative to 'start' pointer. | |
| int | BF_set_put (BF *bf, size_t pos) |
| set put position, position is relative to 'start' pointer. | |
1.7.4