prevent reading beyond a certain position no argument removes the limit
Declared in <streams.h>
bool
SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max());
True if the limit was set, false if nPos is before the current read position.
| Name | Description |
|---|---|
| nPos | Absolute stream position past which reads are disallowed; the default removes the limit. |