Extension methods for helping with binary conversion.
More...
|
| static byte | ReverseBits (this byte value) |
| | Reverse the bits of a single byte.
|
| static bool | IsHex (this char c) |
| | Tests to see if character is a valid hex digit.
|
| static int | HexToInt (this char value) |
| | Converts a single hex digit character to its integer representation.
|
Extension methods for helping with binary conversion.
Definition at line 8 of file BinaryExtensions.cs.
◆ HexToInt()
| int OSDP.Net.Utilities.BinaryExtensions.HexToInt |
( |
this char | value | ) |
|
|
static |
Converts a single hex digit character to its integer representation.
- Parameters
-
| value | Character to be converted |
- Returns
- Integer representation of the input character
- Exceptions
-
| InvalidOperationException | |
◆ IsHex()
| bool OSDP.Net.Utilities.BinaryExtensions.IsHex |
( |
this char | c | ) |
|
|
static |
Tests to see if character is a valid hex digit.
- Parameters
-
- Returns
- true if valid hex; false otherwise
◆ ReverseBits()
| byte OSDP.Net.Utilities.BinaryExtensions.ReverseBits |
( |
this byte | value | ) |
|
|
inlinestatic |
Reverse the bits of a single byte.
- Parameters
-
| value | byte to be converted |
- Returns
- Same byte with its bits reversed
Definition at line 15 of file BinaryExtensions.cs.
The documentation for this class was generated from the following file: