[#BufferedFile-SetLimit]
= xref:BufferedFile.adoc[BufferedFile]::SetLimit
:relfileprefix: ../
:mrdocs:

prevent reading beyond a certain position no argument removes the limit

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SetLimit(uint64&lowbar;t nPos = std&colon;&colon;numeric&lowbar;limits&lt;uint64&lowbar;t&gt;&colon;&colon;max());
----

== Return Value

True if the limit was set, false if `nPos` is before the current read position&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nPos*
| Absolute stream position past which reads are disallowed&semi; the default removes the limit&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
