OutBuffer.moveToFile

Destructively saves the contents of this to filename. As an optimization, if the file already has identical contents with the buffer, no copying is done. This is because on SSD drives reading is often much faster than writing and because there's a high likelihood an identical file is written during the build process.

struct OutBuffer
extern (D) nothrow @system
bool
moveToFile
(
const char* filename
)

Parameters

filename char*

the name of the file to receive the contents

Return Value

Type: bool

true iff the operation succeeded.

Meta