MCPcopy Create free account
hub / github.com/blend2d/blend2d / shrink

Method shrink

blend2d/core/array.h:462–462  ·  view source on GitHub ↗

Shrinks the capacity of the array to fit its length. Some array operations like `append()` may grow the array more than necessary to make it faster when such manipulation operations are called consecutively. When you are done with modifications and you know the lifetime of the array won't be short you can use `shrink()` to fit its memory requirements to the number of items it stores, which could

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

bl_array_shrinkFunction · 0.85

Tested by

no test coverage detected