14e011b72c
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