コード例 #1
0
 /// <summary>
 /// Return the hash of the object
 /// </summary>
 /// <returns>Hash of the object</returns>
 public override int GetHashCode()
 {
     return((int)FNV1a.Hash32(Utils.Latin1Encoding.GetBytes(ToString())));
 }
コード例 #2
0
 /// <summary>
 /// Calculate the hash of the raw, binary data of this picture, using FNV-1a
 /// </summary>
 /// <returns>FNV-1a hash of the raw binary data</returns>
 public uint ComputePicHash()
 {
     PictureHash = FNV1a.Hash32(PictureData);
     return(PictureHash);
 }