Sink that writes to a file using a given buffer. If the buffer is nullptr, writes will be unbuffered.
Synopsis
Declared in <folly/gen/File.h>
template<class S = /* implementation-defined */::FileWriter>
S
toFile(
File file,
std::unique_ptr<IOBuf> buffer);
Return Value
A sink that writes values to the file.
Parameters
Name |
Description |
file |
The file to write to. |
buffer |
The buffer used to batch writes, or nullptr for unbuffered. |
Created with MrDocs