const FormatMemory = struct memory: []const u8alignment: Alignment854
855
856
857
858
859
860
861
862
863
864const FormatMemory = struct {
memory: []const u8,
alignment: Alignment,
pub fn format(m: FormatMemory, w: *std.Io.Writer) std.Io.Writer.Error!void {
return w.print(
"[addr: {x}, len: {} (0x{x}) align: {}]",
.{ @intFromPtr(m.memory.ptr), m.memory.len, m.memory.len, m.alignment.toByteUnits() },
);
}
}