DoxigAlpha

printBounded

Function parameters

Parameters

#
self:*Self
fmt:[]const u8
args:anytype

Deprecated.

Functions

#
Managed
Deprecated.
AlignedManaged
Deprecated.
Aligned
A contiguous, growable list of arbitrarily aligned items in memory.

Source

Implementation

#
pub fn printBounded(self: *Self, comptime fmt: []const u8, args: anytype) error{OutOfMemory}!void {
    comptime assert(T == u8);
    var w: std.io.Writer = .fixed(self.unusedCapacitySlice());
    w.print(fmt, args) catch return error.OutOfMemory;
    self.items.len += w.end;
}