pub fn appendUnalignedSliceBounded(self: *Self, items: []align(1) const T) error self: *Selfitems: []align(1) const T1159
1160
1161
1162 pub fn appendUnalignedSliceBounded(self: *Self, items: []align(1) const T) error{OutOfMemory}!void {
if (self.capacity - self.items.len < items.len) return error.OutOfMemory;
return appendUnalignedSliceAssumeCapacity(self, items);
}
Append an unaligned slice of items to the list.
Intended to be used only when
appendSliceAssumeCapacitywould be a compile error. Never invalidates element pointers. If the list lacks unused capacity for the additional items, returnserror.OutOfMemory.