diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2021-08-24 13:59:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-24 13:59:28 +0200 |
| commit | 8a37fe21764659c5f742454a4eb9950b5c747a42 (patch) | |
| tree | 1f2b5b9fcf5cd9aa4156e9c75cccc4590837f616 /lib/std/c | |
| parent | 8c41a8e761cb609d927b0f2c3c3c094970d2eb58 (diff) | |
| download | zig-8a37fe21764659c5f742454a4eb9950b5c747a42.tar.gz zig-8a37fe21764659c5f742454a4eb9950b5c747a42.zip | |
BoundedArray: a simple way to represent small data whose max size is known (#9134)
This is a simple structure containing an array and a length, that can be viewed as a slice.
It is useful to pass-by-copy small data whose exact size is known at runtime, but whose maximum size is known at comptime. This greatly simplifies code that otherwise would require an allocator, or reimplementing what this type does.
Diffstat (limited to 'lib/std/c')
0 files changed, 0 insertions, 0 deletions
