Table of Contents

Class BitVectorPool

Namespace
Echo.Memory
Assembly
Echo.dll

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

size int

The number of bits in the vector to rent.

initialize bool

A 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

is32Bit bool

A value indicating the vector should be 32 or 64 bits long.

initialize bool

A 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

vector BitVector

The vector.

Returns

bool

true if the bitvector was an instance of the pool, false otherwise.