Fields

atomic_file: fs.AtomicFile,
file_writer: File.Writer,
buffered_writer: BufferedWriter,
allocator: mem.Allocator,

Functions

fn create(allocator: mem.Allocator, dir: fs.Dir, dest_path: []const u8, atomic_file_options: fs.Dir.AtomicFileOptions) !*BufferedAtomicFile

TODO when https://github.com/ziglang/zig/issues/2761 is solved this API will no…

TODO when https://github.com/ziglang/zig/issues/2761 is solved this API will not need an allocator

fn destroy(self: *BufferedAtomicFile) void

always call destroy, even after successful finish()

fn finish(self: *BufferedAtomicFile) !void

No documentation provided.

fn writer(self: *BufferedAtomicFile) Writer

No documentation provided.

Values

BufferedWriter
undefined
Writer
undefined
buffer_size
comptime_int