Class BitVectorPool
Provides a mechanism for reusing instances of BitVector.
public class BitVectorPool
- Inheritance
-
BitVectorPool
- Inherited Members
Methods
Rent(int, bool)
Rents a single bit vector of the provided size.
public BitVector Rent(int size, bool initialize)
Parameters
sizeintThe number of bits in the vector to rent.
initializeboolA value indicating whether the bits should be cleared out or marked unknown.
Returns
- BitVector
The bit vector.
RentNativeInteger(bool, bool)
Rents a native integer bit vector.
public BitVector RentNativeInteger(bool is32Bit, bool initialize)
Parameters
is32BitboolA value indicating the vector should be 32 or 64 bits long.
initializeboolA value indicating whether the bits should be cleared out or marked unknown.
Returns
- BitVector
The bit vector.
Return(BitVector?)
Returns the bit vector to the pool.
public bool Return(BitVector? vector)
Parameters
vectorBitVectorThe vector.
Returns
- bool
trueif the bitvector was an instance of the pool,falseotherwise.