mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 11:10:21 +01:00
When we have a buffer that we want to grow exponentially with nm_utils_get_next_realloc_size(), then there are certain buffer sizes that are better suited. For example, if you have an empty NMStrBuf (len == 0), and you want to allocate roughly one kilobyte, then 1024 is a bad choice, because nm_utils_get_next_realloc_size() will give you 2024 bytes. NM_UTILS_GET_NEXT_REALLOC_SIZE_1000 might be better in this case. |
||
|---|---|---|
| .. | ||
| meson.build | ||
| test-shared-general.c | ||