Skip to content

Commit

Permalink
feat: add Writer.raw
Browse files Browse the repository at this point in the history
By analogy with `Reader.raw`.
  • Loading branch information
ianprime0509 committed Dec 22, 2024
1 parent 6c9f8b6 commit 5f51fa0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xml.zig
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ pub fn GenericWriter(comptime SinkError: type) type {
pub inline fn bindNs(writer: *@This(), prefix: []const u8, ns: []const u8) WriteError!void {
return @errorCast(writer.writer.bindNs(prefix, ns));
}

/// Returns the underlying raw `Writer`.
pub inline fn raw(writer: *@This()) *Writer {
return &writer.writer;
}
};
}

Expand Down

0 comments on commit 5f51fa0

Please sign in to comment.