# std.ArrayList: add initBuffer to the unmanaged array list · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f6549a956d640c1de2dc99340582950f9dc18c60)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f6549a956d640c1de2dc99340582950f9dc18c60

Requested commit: f6549a956d640c1de2dc99340582950f9dc18c60

Commit: f6549a956d640c1de2dc99340582950f9dc18c60

Tree: 6d043ee95bac012b6c65dbdf5db8cc84dd0478a8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.ArrayList: add initBuffer to the unmanaged array list

This is useful when you want to have an array list backed by a fixed
slice of memory and no Allocator will be used.

It's an alternative to BoundedArray as you will see in the following
commit.

```

## Parents

- [d5e21a4f1a2920ef7bbe3c54feab1a3b5119bf77](https://git.cafe/gitcafe/zig/commit/d5e21a4f1a2920ef7bbe3c54feab1a3b5119bf77?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f6549a956d640c1de2dc99340582950f9dc18c60?format=markdown)
