]> git.ipfire.org Git - thirdparty/asterisk.git/commit
vector: Add AST_VECTOR_COMPACT() to reclaim wasted space
authorSean Bright <sean.bright@gmail.com>
Thu, 14 Mar 2019 14:55:30 +0000 (10:55 -0400)
committerSean Bright <sean.bright@gmail.com>
Fri, 15 Mar 2019 20:03:03 +0000 (16:03 -0400)
commitcc954977ebddf9f47bf94e03fe02dbef26a63f5f
tree007a81f3262a3f50cb516b3808276e01345b79a8
parent3df8d605cc77c8c9647c05843c964459430efee9
vector: Add AST_VECTOR_COMPACT() to reclaim wasted space

This might be useful in situations where you are loading an undetermined number
of items into a vector and don't want to keep (potentially) 2x the necessary
memory around indefinitely.

Change-Id: I9711daa0fe01783fc6f04c5710eba84f2676d7b9
include/asterisk/vector.h