C# Класс S7.Net.Types.Boolean

Contains the methods to read, set and reset bits inside bytes
Показать файл Открыть проект

Открытые методы

Метод Описание
ClearBit ( byte value, int bit ) : byte

Resets the value of a bit to 0 (false), given the address of the bit

GetValue ( byte value, int bit ) : bool

Returns the value of a bit in a bit, given the address of the bit

SetBit ( byte value, int bit ) : byte

Sets the value of a bit to 1 (true), given the address of the bit

Описание методов

ClearBit() публичный статический Метод

Resets the value of a bit to 0 (false), given the address of the bit
public static ClearBit ( byte value, int bit ) : byte
value byte
bit int
Результат byte

GetValue() публичный статический Метод

Returns the value of a bit in a bit, given the address of the bit
public static GetValue ( byte value, int bit ) : bool
value byte
bit int
Результат bool

SetBit() публичный статический Метод

Sets the value of a bit to 1 (true), given the address of the bit
public static SetBit ( byte value, int bit ) : byte
value byte
bit int
Результат byte