MCPcopy Create free account
hub / github.com/creatale/node-dv / boxaExtendArray

Function boxaExtendArray

deps/leptonica/src/boxbasic.c:662–671  ·  view source on GitHub ↗

! * \brief boxaExtendArray() * * \param[in] boxa * \return 0 if OK; 1 on error * * * Notes: * (1) Reallocs with doubled size of ptr array. * */

Source from the content-addressed store, hash-verified

660 * </pre>
661 */
662l_int32
663boxaExtendArray(BOXA *boxa)
664{
665 PROCNAME("boxaExtendArray");
666
667 if (!boxa)
668 return ERROR_INT("boxa not defined", procName, 1);
669
670 return boxaExtendArrayToSize(boxa, 2 * boxa->nalloc);
671}
672
673
674/*!

Callers 4

pixacompExtendArrayFunction · 0.85
pixaInsertPixFunction · 0.85
boxaAddBoxFunction · 0.85
boxaInsertBoxFunction · 0.85

Calls 1

boxaExtendArrayToSizeFunction · 0.85

Tested by

no test coverage detected