toFile overloads
Synopses
Declared in <folly/gen/File.h>
Sink that writes to a file with a buffer of the given size. If bufferSize is 0, writes will be unbuffered.
Sink that writes to a file using a given buffer. If the buffer is nullptr, writes will be unbuffered.
Return Value
A sink that writes values to the file.
Parameters
Name |
Description |
file |
The file to write to. |
bufferSize |
The size of the write buffer in bytes; 0 means unbuffered. |
buffer |
The buffer used to batch writes, or nullptr for unbuffered. |
Created with MrDocs