diff options
author | Larry Ruane <larryruane@gmail.com> | 2020-07-13 17:11:37 -0600 |
---|---|---|
committer | Larry Ruane <larryruane@gmail.com> | 2022-10-24 13:02:37 -0600 |
commit | c72de9990ae8f1744006d9c852023b882d5ed80c (patch) | |
tree | a65e51a483084c24ae2cdc0401d3aeeee606b7af /src/wallet/spend.cpp | |
parent | 48a68908ba3d5e077cda7bd1e908b923fbead824 (diff) |
util: add CBufferedFile::SkipTo() to move ahead in the stream
SkipTo() reads data from the file into the CBufferedFile object
(memory), but, unlike this object's read() method, SkipTo() doesn't
transfer data into a caller's memory buffer. This is useful because
after skipping forward in the stream in this way, the user can, if
needed, rewind the stream (SetPos()) and access the object's memory
buffer including ranges that were skipped over (without needing to
read from the disk file).
Diffstat (limited to 'src/wallet/spend.cpp')
0 files changed, 0 insertions, 0 deletions