fn bufPrint(buf: []u8, comptime fmt: []const u8, args: anytype) BufPrintError![]u8

print a Formatter string into buf. Actually just a thin wrapper around format and fixedBufferStream. returns a slice of the bytes printed to.

Parameters

buf: []u8,
fmt: []const u8,
args: anytype,