Show / Hide Table of Contents

    Class ChecksumBuilder

    Provides a way to fluently represent checksum values of arbitrary data.

    Inheritance
    System.Object
    ChecksumBuilder
    CacheValidator
    Namespace: Cuemon.Integrity
    Assembly: Cuemon.Integrity.dll
    Syntax
    public class ChecksumBuilder

    Constructors

    | Improve this Doc

    ChecksumBuilder()

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder()
    | Improve this Doc

    ChecksumBuilder(Byte[], Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(byte[] checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Byte[] checksum

    An array of bytes containing a checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(Double, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(double checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Double checksum

    A System.Double value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(Int16, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(short checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Int16 checksum

    A System.Int16 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(Int32, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(int checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Int32 checksum

    A System.Int32 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(Int64, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(long checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Int64 checksum

    A System.Int64 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(Single, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(float checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.Single checksum

    A System.Single value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(String, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(string checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.String checksum

    A System.String value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(UInt16, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(ushort checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.UInt16 checksum

    A System.UInt16 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(UInt32, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(uint checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.UInt32 checksum

    A System.UInt32 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    | Improve this Doc

    ChecksumBuilder(UInt64, Action<ChecksumBuilderOptions>)

    Initializes a new instance of the ChecksumBuilder class.

    Declaration
    public ChecksumBuilder(ulong checksum, Action<ChecksumBuilderOptions> setup = null)
    Parameters
    Type Name Description
    System.UInt64 checksum

    A System.UInt64 value containing a byte-for-byte checksum of the data this instance represents.

    System.Action<ChecksumBuilderOptions> setup

    The ChecksumBuilderOptions which need to be configured.

    Properties

    | Improve this Doc

    AlgorithmType

    Gets the hash algorithm to use for the checksum computation.

    Declaration
    public HashAlgorithmType AlgorithmType { get; protected set; }
    Property Value
    Type Description
    HashAlgorithmType

    The hash algorithm to use for the checksum computation.

    | Improve this Doc

    Checksum

    Gets a ChecksumResult containing a computed hash value of the data this instance represents.

    Declaration
    public ChecksumResult Checksum { get; }
    Property Value
    Type Description
    ChecksumResult

    A ChecksumResult containing a computed hash value of the data this instance represents.

    Methods

    | Improve this Doc

    Equals(ChecksumBuilder)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ChecksumBuilder other)
    Parameters
    Type Name Description
    ChecksumBuilder other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc

    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with the current System.Object.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to this instance; otherwise, false.

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc

    ToString()

    Converts the the Cuemon.Integrity.ChecksumBuilder.Bytes of this instance to its equivalent hexadecimal representation.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A hexadecimal representation of this instance.

    Overrides
    System.Object.ToString()

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    ChecksumBuilderExtensions.CombineWith<T>(T, Double[])
    ChecksumBuilderExtensions.CombineWith<T>(T, Int16[])
    ChecksumBuilderExtensions.CombineWith<T>(T, String[])
    ChecksumBuilderExtensions.CombineWith<T>(T, Int32[])
    ChecksumBuilderExtensions.CombineWith<T>(T, Int64[])
    ChecksumBuilderExtensions.CombineWith<T>(T, Single[])
    ChecksumBuilderExtensions.CombineWith<T>(T, UInt16[])
    ChecksumBuilderExtensions.CombineWith<T>(T, UInt32[])
    ChecksumBuilderExtensions.CombineWith<T>(T, UInt64[])
    ChecksumBuilderExtensions.CombineWith<T>(T, Byte[])
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX