public static Byte[] GetHashBytes64(this Object obj) { if (obj is ValueType) { return(GetValueTypeHashBytes64(obj)); } if (obj is string) { return((((string)obj)).GetHashBytes64()); } if (obj is IList) { return(GetHashBytes64((IList)obj)); } return(HashHandle64.ComputeHash(obj.GetBytes())); }
public static Byte[] GetHashBytes64(this Byte[] bytes) { return(HashHandle64.ComputeHash(bytes)); }
public static Byte[] GetHashBytes64(this String obj) { fixed(char *c = obj) return(HashHandle64.ComputeHash((byte *)c, obj.Length * sizeof(char), 0)); }
public static Byte[] GetHashBytes64(this IList obj) { return(HashHandle64.ComputeHash(obj.GetBytes())); }
public override unsafe Byte[] ComputeHash(byte[] bytes) { return(HashHandle64.ComputeHash(bytes)); }
public override unsafe Byte[] ComputeHash(byte *bytes, int length, uint seed = 0) { return(HashHandle64.ComputeHash(bytes, length, 0)); }