Crc32(UInt32, UInt32, Boolean) Constructor
Initializes a new instance of the
Crc32 class.
Namespace: KGySoft.Security.CryptographyAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
[CLSCompliantAttribute(false)]
public Crc32(
uint polynomial,
uint initialCrc = 0,
bool isBigEndian = true
)
<CLSCompliantAttribute(false)>
Public Sub New (
polynomial As UInteger,
Optional initialCrc As UInteger = 0,
Optional isBigEndian As Boolean = true
)
public:
[CLSCompliantAttribute(false)]
Crc32(
unsigned int polynomial,
unsigned int initialCrc = 0,
bool isBigEndian = true
)
[<CLSCompliantAttribute(false)>]
new :
polynomial : uint32 *
?initialCrc : uint32 *
?isBigEndian : bool
(* Defaults:
let _initialCrc = defaultArg initialCrc 0
let _isBigEndian = defaultArg isBigEndian true
*)
-> Crc32
Parameters
- polynomial UInt32
- The polynomial to use to calculate the CRC value.
- initialCrc UInt32 (Optional)
- The initial CRC value to use. If the final CRC is calculated in more sessions the result of the last calculation can be specified here. This parameter is optional.
Default value: 0. - isBigEndian Boolean (Optional)
- If , the byte order of the ComputeHash methods and the Hash property
will be big endian, which is the standard CRC32 representation; otherwise, little endian. Does not affect the UInt32 return values though. This parameter is optional.
Default value: .