Struct Hash128 | Entities | 0.10.0-preview.6
docs.unity3d.com
Entities 0.10.0-preview.6
    Show / Hide Table of Contents

    Struct Hash128

    Namespace: Unity.Entities
    Syntax
    [Serializable]
    public struct Hash128 : IEquatable<Hash128>, IComparable<Hash128>

    Constructors

    Hash128(String)

    Construct a hash from a 32 character hex string If the string has the incorrect length or non-hex characters the Value will be all 0

    Declaration
    public Hash128(string value)
    Parameters
    Type Name Description
    String value

    Hash128(UInt32, UInt32, UInt32, UInt32)

    Declaration
    public Hash128(uint x, uint y, uint z, uint w)
    Parameters
    Type Name Description
    UInt32 x
    UInt32 y
    UInt32 z
    UInt32 w

    Hash128(uint4)

    Declaration
    public Hash128(uint4 value)
    Parameters
    Type Name Description
    uint4 value

    Fields

    Value

    Declaration
    public uint4 Value
    Field Value
    Type Description
    uint4

    Properties

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    Boolean

    Methods

    CompareTo(Hash128)

    Declaration
    public int CompareTo(Hash128 other)
    Parameters
    Type Name Description
    Hash128 other
    Returns
    Type Description
    Int32

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(Hash128)

    Declaration
    public bool Equals(Hash128 obj)
    Parameters
    Type Name Description
    Hash128 obj
    Returns
    Type Description
    Boolean

    GetHashCode()

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

    ToString()

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

    Operators

    Equality(Hash128, Hash128)

    Declaration
    public static bool operator ==(Hash128 obj1, Hash128 obj2)
    Parameters
    Type Name Description
    Hash128 obj1
    Hash128 obj2
    Returns
    Type Description
    Boolean

    GreaterThan(Hash128, Hash128)

    Declaration
    public static bool operator>(Hash128 a, Hash128 b)
    Parameters
    Type Name Description
    Hash128 a
    Hash128 b
    Returns
    Type Description
    Boolean

    Inequality(Hash128, Hash128)

    Declaration
    public static bool operator !=(Hash128 obj1, Hash128 obj2)
    Parameters
    Type Name Description
    Hash128 obj1
    Hash128 obj2
    Returns
    Type Description
    Boolean

    LessThan(Hash128, Hash128)

    Declaration
    public static bool operator <(Hash128 a, Hash128 b)
    Parameters
    Type Name Description
    Hash128 a
    Hash128 b
    Returns
    Type Description
    Boolean
    In This Article
    • Constructors
      • Hash128(String)
      • Hash128(UInt32, UInt32, UInt32, UInt32)
      • Hash128(uint4)
    • Fields
      • Value
    • Properties
      • IsValid
    • Methods
      • CompareTo(Hash128)
      • Equals(Object)
      • Equals(Hash128)
      • GetHashCode()
      • ToString()
    • Operators
      • Equality(Hash128, Hash128)
      • GreaterThan(Hash128, Hash128)
      • Inequality(Hash128, Hash128)
      • LessThan(Hash128, Hash128)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023