DoxigAlpha

appendWrite

Same as append except it returns the number of bytes written, which is always the same as m.len. The purpose of this function existing is to match std.io.GenericWriter API. Invalidates element pointers if additional memory is needed.

Function parameters

Parameters

#
self:*Self
m:[]const u8

Deprecated.

Functions

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

Source

Implementation

#
fn appendWrite(self: *Self, m: []const u8) Allocator.Error!usize {
    try self.appendSlice(m);
    return m.len;
}