MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifArrayPop

Function avifArrayPop

src/utils.c:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void avifArrayPop(void * arrayStruct)
133{
134 avifArrayInternal * arr = (avifArrayInternal *)arrayStruct;
135 assert(arr->count > 0);
136 --arr->count;
137 memset(&arr->ptr[arr->count * (size_t)arr->elementSize], 0, arr->elementSize);
138}
139
140void avifArrayDestroy(void * arrayStruct)
141{

Calls

no outgoing calls

Tested by

no test coverage detected