zynagent-first application framework

Back to the API reference

zyn.Storage.Writer#

/// A pending blob exposed through Zig's writer interface.
pub const Writer = struct {
    interface: Io.Writer,

    /// Atomically publishes the complete blob.
    pub fn finish(self: *Writer) !Blob;

    /// Discards an unfinished blob. Repeated calls are no-ops.
    pub fn deinit(self: *Writer) void;
};