/// <summary>Computes the hash code of a slice</summary> /// <param name="obj">A slice</param> /// <returns>A 32-bit signed hash coded calculated from all the bytes in the slice</returns> public int GetHashCode(Slice obj) { return(obj.Array == null ? 0 : UnsafeHelpers.ComputeHashCode(obj.Array, obj.Offset, obj.Count)); }
/// <summary>Computes the hash code of a slice</summary> /// <param name="obj">A slice</param> /// <returns>A 32-bit signed hash coded calculated from all the bytes in the slice</returns> public int GetHashCode(Slice obj) { return(obj.Array == null ? 0 : UnsafeHelpers.ComputeHashCode(obj.Span)); }