aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2021-08-24 13:59:28 +0200
committerGitHub <noreply@github.com>2021-08-24 13:59:28 +0200
commit8a37fe21764659c5f742454a4eb9950b5c747a42 (patch)
tree1f2b5b9fcf5cd9aa4156e9c75cccc4590837f616 /lib/std/c
parent8c41a8e761cb609d927b0f2c3c3c094970d2eb58 (diff)
downloadzig-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