BufferedFile::SetLimit

prevent reading beyond a certain position no argument removes the limit

Synopsis

Declared in <streams.h>

bool
SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max());

Return Value

True if the limit was set, false if nPos is before the current read position.

Parameters

NameDescription
nPosAbsolute stream position past which reads are disallowed; the default removes the limit.