tesseract
4.0.0-1-g2a2b
|
Go to the source code of this file.
Functions | |
BIT_VECTOR | ExpandBitVector (BIT_VECTOR Vector, int NewNumBits) |
void | FreeBitVector (BIT_VECTOR BitVector) |
BIT_VECTOR | NewBitVector (int NumBits) |
BIT_VECTOR ExpandBitVector | ( | BIT_VECTOR | Vector, |
int | NewNumBits | ||
) |
This routine uses realloc to increase the size of the specified bit vector.
Globals:
Vector | bit vector to be expanded |
NewNumBits | new size of bit vector |
Definition at line 44 of file bitvec.cpp.
void FreeBitVector | ( | BIT_VECTOR | BitVector | ) |
This routine frees a bit vector. It also decrements the global counter that keeps track of the number of bit vectors allocated. If BitVector is nullptr, then the count is printed to stderr.
Globals:
BitVector | bit vector to be freed |
Definition at line 51 of file bitvec.cpp.
BIT_VECTOR NewBitVector | ( | int | NumBits | ) |
Allocate and return a new bit vector large enough to hold the specified number of bits.
Globals:
NumBits | number of bits in new bit vector |
Definition at line 82 of file bitvec.cpp.