[#BufferedFile-SetLimit] = xref:BufferedFile.adoc[BufferedFile]::SetLimit :relfileprefix: ../ :mrdocs: prevent reading beyond a certain position no argument removes the limit == Synopsis Declared in `<streams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *nPos* | Absolute stream position past which reads are disallowed; the default removes the limit. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#