class
FMdfAtomicFile
Every document save in both encodings lands here. Writing in place truncates the target the moment the stream opens, and a bare temp-then-rename is atomic against a crash but not against lost power, so the write goes through the PAL's durable replace: the old bytes or the new bytes are the only two outcomes even across a power cut. The bytes are written verbatim — a text-mode stream once made a document's line endings depend on the host that saved it.
- Module
- MDF
- Header
#include "mdf/mdf_binary.h"- Namespace
MDF::detail
Public functions
| Returns | Name | Description |
|---|---|---|
bool | Write |
Function details
Write
C++
static bool Write(const std::string& filepath, const char* data, size_t size)Generated from mdf/mdf_binary.h via mdf.json · Oct 26, 2026Version 1.0.0