Search Results for

    Show / Hide Table of Contents

    Class BitUtil

    Utility class for bit operations

    Inheritance
    System.Object
    BitUtil
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Common.Lib
    Assembly: ImageVault.Common.dll
    Syntax
    public static class BitUtil

    Methods

    Combine(Boolean[])

    Combines a set of boolean values that indicate if a bit shoul be set or not

    Declaration
    public static int Combine(params bool[] bits)
    Parameters
    Type Name Description
    System.Boolean[] bits
    Returns
    Type Description
    System.Int32

    IsSet(Int32, Int32)

    Controls if the supplied value has all flags set according to the checksum

    Declaration
    public static bool IsSet(int value, int checksum)
    Parameters
    Type Name Description
    System.Int32 value
    System.Int32 checksum
    Returns
    Type Description
    System.Boolean

    Set(Int32, Int32, Boolean)

    Sets the supplied flag

    Declaration
    public static int Set(int value, int flag, bool set = true)
    Parameters
    Type Name Description
    System.Int32 value
    System.Int32 flag
    System.Boolean set
    Returns
    Type Description
    System.Int32
    In This Article
    Back to top (c) Meriworks 2002-2022