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

Function ExpandBitVector

deps/tesseract/cutil/bitvec.cpp:47–50  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Public Code -----------------------------------------------------------------------------*/ ---------------------------------------------------------------------------*/ * This routine uses realloc to increase the size of * the specified bit vector. * * Globals: * - none * * @param Vector bit vector

Source from the content-addressed store, hash-verified

45 * @note History: Fri Nov 16 10:11:16 1990, DSJ, Created.
46 */
47BIT_VECTOR ExpandBitVector(BIT_VECTOR Vector, int NewNumBits) {
48 return ((BIT_VECTOR) Erealloc(Vector,
49 sizeof(Vector[0]) * WordsInVectorOfSize(NewNumBits)));
50} /* ExpandBitVector */
51
52
53/*---------------------------------------------------------------------------*/

Callers 1

AddProtoToClassFunction · 0.85

Calls 1

EreallocFunction · 0.85

Tested by

no test coverage detected