Function finish [src]

Prototype

pub fn finish(self: *Self, writer: anytype) !void

Parameters

self: *Self

Source

pub fn finish(self: *Self, writer: anytype) !void { if (self.cursor > 0) { try writer.writeAll(self.buf.items[0..self.cursor]); self.cursor = 0; } }