Add peek buffer to io, hide file/buffer private functions

Implements peek buffer on top of the raw io read (with small storage
optimization). Hides implementation details of the file/buffer.
This commit is contained in:
2024-07-08 22:25:02 +03:00
parent ebb78a4802
commit 785070798c
11 changed files with 524 additions and 128 deletions

View File

@@ -4,10 +4,4 @@
#include "bh.h"
#include <bh/io.h>
void bh_io_init(bh_io_t *io,
const bh_io_table_t *table);
void bh_io_destroy(bh_io_t *io);
#endif /* BH_INTERNAL_IO_H */