C# Class Yea.Compression.BitArrayCompress

显示文件 Open project: OxPatient/Rule-Engine Class Usage Examples

Public Properties

Property Type Description
IsDirty bool

Public Methods

Method Description
And ( BitArrayCompress op ) : BitArrayCompress
AndNot ( BitArrayCompress op ) : BitArrayCompress
BitArrayCompress ( ) : System.Collections.Generic
BitArrayCompress ( Type type, uint ints ) : System.Collections.Generic
Copy ( ) : BitArrayCompress
CountOnes ( ) : long
CountZeros ( ) : long
FreeMemory ( ) : void
Get ( int index ) : bool
GetBitIndexes ( ) : IEnumerable
GetCompressed ( ) : uint[]
Not ( ) : BitArrayCompress
Or ( BitArrayCompress op ) : BitArrayCompress
Set ( int index, bool val ) : void
Xor ( BitArrayCompress op ) : BitArrayCompress

Private Methods

Method Description
ChangeTypeIfNeeded ( ) : void
CheckBitArray ( ) : void
Compress ( uint data ) : void
FlushOnes ( List compressed, uint &ones ) : void
FlushZeros ( List compressed, uint &zeros ) : void
GetUncompressed ( ) : uint[]
InternalGet ( int index ) : bool
InternalSet ( int index, bool val ) : void
Prelogic ( BitArrayCompress op, uint &left, uint &right ) : void
Resize ( int index ) : void
ResizeAsNeeded ( List list, int index ) : void
Take31Bits ( uint data, int index ) : uint
Uncompress ( ) : void
UnpackOffsets ( ) : uint[]
Write31Bits ( List list, int index, uint val ) : void
WriteOnes ( List list, int index, uint count ) : void

Method Details

And() public method

public And ( BitArrayCompress op ) : BitArrayCompress
op BitArrayCompress
return BitArrayCompress

AndNot() public method

public AndNot ( BitArrayCompress op ) : BitArrayCompress
op BitArrayCompress
return BitArrayCompress

BitArrayCompress() public method

public BitArrayCompress ( ) : System.Collections.Generic
return System.Collections.Generic

BitArrayCompress() public method

public BitArrayCompress ( Type type, uint ints ) : System.Collections.Generic
type Type
ints uint
return System.Collections.Generic

Copy() public method

public Copy ( ) : BitArrayCompress
return BitArrayCompress

CountOnes() public method

public CountOnes ( ) : long
return long

CountZeros() public method

public CountZeros ( ) : long
return long

FreeMemory() public method

public FreeMemory ( ) : void
return void

Get() public method

public Get ( int index ) : bool
index int
return bool

GetBitIndexes() public method

public GetBitIndexes ( ) : IEnumerable
return IEnumerable

GetCompressed() public method

public GetCompressed ( ) : uint[]
return uint[]

Not() public method

public Not ( ) : BitArrayCompress
return BitArrayCompress

Or() public method

public Or ( BitArrayCompress op ) : BitArrayCompress
op BitArrayCompress
return BitArrayCompress

Set() public method

public Set ( int index, bool val ) : void
index int
val bool
return void

Xor() public method

public Xor ( BitArrayCompress op ) : BitArrayCompress
op BitArrayCompress
return BitArrayCompress

Property Details

IsDirty public_oe property

public bool IsDirty
return bool