Implemment lookaheadreader with lookahead and commit api

The LookAheadReader api works similar to read but it has 2 methods,
lookahead: it will read 1 byte (with internal ftell) without modifying
the file's own ftell() and commit() which saves the current file ftell

LookAheadReader can wrap both buffers and files
This commit is contained in:
oddcoder
2020-06-03 13:34:09 +02:00
parent f068673adc
commit 14e011b72c
2 changed files with 101 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ mod getdelim;
mod ext;
mod helpers;
mod lookaheadreader;
mod printf;
mod scanf;