Class ChecksumBuilderExtensions
- Namespace
- Cuemon.Extensions.Data.Integrity
- Assembly
- Cuemon.Extensions.Data.Integrity.dll
Extension methods for the ChecksumBuilder class.
public static class ChecksumBuilderExtensions
- Inheritance
-
ChecksumBuilderExtensions
Methods
CombineWith<T>(T, byte[])
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, byte[] additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumbyte[]An array of bytes containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, double)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, double additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumdoubleA double value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, short)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, short additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumshortAn short value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, int)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, int additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumintAn int value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, long)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, long additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumlongAn long value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, float)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, float additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumfloatA float value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, string)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, string additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumstringA string value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, ushort)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, ushort additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumushortAn ushort value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, uint)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, uint additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumuintAn uint value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.
CombineWith<T>(T, ulong)
Combines the additionalChecksum to the representation of this instance.
public static T CombineWith<T>(this T cb, ulong additionalChecksum) where T : ChecksumBuilder
Parameters
cbTThe ChecksumBuilder to extend.
additionalChecksumulongAn ulong value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cbofT.
Type Parameters
TThe type of the ChecksumBuilder.