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