DoxigAlpha

appendUnalignedSlice

Append the slice of items to the list. Allocates more memory as necessary. Only call this function if a call to appendSlice instead would be a compile error. Invalidates element pointers if additional memory is needed.

Function parameters

Parameters

#
self:*Self
items:[]align(1) const T

Deprecated.

Functions

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

Source

Implementation

#
pub fn appendUnalignedSlice(self: *Self, gpa: Allocator, items: []align(1) const T) Allocator.Error!void {
    try self.ensureUnusedCapacity(gpa, items.len);
    self.appendUnalignedSliceAssumeCapacity(items);
}