thomasmoelhave / tpie

Templated Portable I/O Environment
Other
112 stars 24 forks source link

Issue #187 : Add `peek_back` to `tpie::file_stream` #261

Open SSoelvsten opened 2 years ago

SSoelvsten commented 2 years ago

Closes #187 by adding a peek_back function to tpie::file_stream. Furthermore also improves the order of the functions, their documentation (quite a few had missing documentation), whitespace, and adds a read_back function given an iterator.

This has been extensively tested on my research project (https://github.com/SSoelvsten/adiar/pull/374).

SSoelvsten commented 2 years ago

Also, now looking at said code: what is the meaning behind the use of the word unlikely in peak_unlikely, read_back_unlikely and write_unlikely? Would update_block__forward_read, update_block__backwards_read, and update_block__forward_write not make more sense?