Implementation of CRC16 (ARC). NOTE: never use CRC for integrity checks, use hashes instead!
More...
|
static ushort | CalcCRC (params byte[] bytes) |
| Calculate the CRC16 (ARC) for a byte-array.
|
|
static ushort | CalcCRC (string text, Encoding? encoding=null) |
| Calculate CRC16 (ARC) for a string.
|
|
static ushort | CalcCRCFile (string file) |
| Calculate the CRC16 for a file.
|
|
static async Task< ushort > | CalcCRCFileAsync (string file) |
| /// Calculate the CRC16 for a file asynchronously.
|
|
Implementation of CRC16 (ARC). NOTE: never use CRC for integrity checks, use hashes instead!
◆ CalcCRC() [1/2]
static ushort BogaNet.CRC.CRC16.CalcCRC |
( |
params byte[] | bytes | ) |
|
|
static |
Calculate the CRC16 (ARC) for a byte-array.
- Parameters
-
- Returns
- CRC16 as ushort
- Exceptions
-
◆ CalcCRC() [2/2]
static ushort BogaNet.CRC.CRC16.CalcCRC |
( |
string | text, |
|
|
Encoding? | encoding = null ) |
|
static |
Calculate CRC16 (ARC) for a string.
- Parameters
-
text | string for the CRC16 |
encoding | Encoding of the string (optional, default: UTF8) |
- Returns
- CRC16 as ushort
- Exceptions
-
◆ CalcCRCFile()
static ushort BogaNet.CRC.CRC16.CalcCRCFile |
( |
string | file | ) |
|
|
static |
Calculate the CRC16 for a file.
- Parameters
-
- Returns
- CRC16 as ushort
- Exceptions
-
◆ CalcCRCFileAsync()
static async Task< ushort > BogaNet.CRC.CRC16.CalcCRCFileAsync |
( |
string | file | ) |
|
|
static |
/// Calculate the CRC16 for a file asynchronously.
- Parameters
-
- Returns
- CRC16 as ushort
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.CRC/CRC/CRC16.cs