← back to roto on ba3a.dev

write

fun write(preset: ProjectPreset, path: Path)

Writes preset to path through AtomicFile. Entries come in a fixed order with a fixed timestamp and compression level, and no extra field or comment, so the same preset always gives the same bytes.


fun write(preset: ProjectPreset, output: OutputStream)

Writes preset to output as write does; output is not closed.