tpie icon indicating copy to clipboard operation
tpie copied to clipboard

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

Open ssoelvsten opened this issue 3 years ago • 1 comments

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 avatar Jul 27 '22 18:07 ssoelvsten

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?

ssoelvsten avatar Jul 27 '22 19:07 ssoelvsten