C# Class Iaik.Utils.BitMap

Provides the ability to access individual bits and export them as a byte array.
Inheritance: Iaik.Utils.Serialization.AutoStreamSerializable
Show file Open project: areiter/InMemoryFuzzing Class Usage Examples

Public Methods

Method Description
BitMap ( Stream src ) : System
BitMap ( byte selectionBits ) : System
BitMap ( int bitsize ) : System

The bit size ceiled to a multiple of 8

GetBit ( int index ) : bool

SetBit ( int index, bool value ) : void

Sets the specified bit to the specified value

SetBitmap ( bool value ) : void

Sets the whole bitmap to the specified value

this ( int index ) : bool

Method Details

BitMap() public method

public BitMap ( Stream src ) : System
src Stream
return System

BitMap() public method

public BitMap ( byte selectionBits ) : System
selectionBits byte
return System

BitMap() public method

The bit size ceiled to a multiple of 8
public BitMap ( int bitsize ) : System
bitsize int
return System

GetBit() public method

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

SetBit() public method

Sets the specified bit to the specified value
public SetBit ( int index, bool value ) : void
index int
value bool
return void

SetBitmap() public method

Sets the whole bitmap to the specified value
public SetBitmap ( bool value ) : void
value bool
return void

this() public method

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