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

Wrap a source file with a ring buffer of nBufSize bytes, guaranteeing nRewindIn bytes of rewind&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BufferedFile(
    xref:AutoFile.adoc[AutoFile]& file,
    uint64&lowbar;t nBufSize,
    uint64&lowbar;t nRewindIn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| Source file to read from&period;
| *nBufSize*
| Size in bytes of the ring buffer&period;
| *nRewindIn*
| Number of bytes guaranteed to be rewindable&semi; must be less than nBufSize&period;
|===


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