C# Class BACnet.Types.BitString8

ファイルを表示 Open project: LorenVS/bacstack Class Usage Examples

Public Properties

Property Type Description
Schema ISchema

Public Methods

Method Description
BitString8 ( byte length, byte flags ) : System

Constructs a new bitstring8 instance

Load ( IValueStream stream ) : BitString8

Loads a bitstring8 value from the stream

Save ( IValueSink sink, BitString8 value ) : void

Saves a bitstring8 value a sink

WithBit ( int index, bool set = true ) : BitString8

Creates a copy of this bitstring with a certain bit overriden

WithLength ( byte length ) : BitString8

Creates a copy of this bitstring with the supplied length

this ( int index ) : bool

Retrieves the value of the indexth bit

Method Details

BitString8() public method

Constructs a new bitstring8 instance
public BitString8 ( byte length, byte flags ) : System
length byte The length of the bitstring
flags byte The flag values
return System

Load() public static method

Loads a bitstring8 value from the stream
public static Load ( IValueStream stream ) : BitString8
stream IValueStream The stream to load from
return BitString8

Save() public static method

Saves a bitstring8 value a sink
public static Save ( IValueSink sink, BitString8 value ) : void
sink IValueSink The sink to save to
value BitString8 The value to save
return void

WithBit() public method

Creates a copy of this bitstring with a certain bit overriden
public WithBit ( int index, bool set = true ) : BitString8
index int The bit to override
set bool The value to override to
return BitString8

WithLength() public method

Creates a copy of this bitstring with the supplied length
public WithLength ( byte length ) : BitString8
length byte The length of the new bitstring
return BitString8

this() public method

Retrieves the value of the indexth bit
public this ( int index ) : bool
index int The index of the bit to retrieve
return bool

Property Details

Schema public_oe static_oe property

The schema for bitstring 8 values
public static ISchema Schema
return ISchema