You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// _length is incremented once per Add(Int32) and is therefore 4
383
-
// times too small (xxHash length is in bytes, not ints).
384
-
385
-
hash+=length*4;
386
-
387
-
// Mix what remains in the queue
388
-
389
-
// Switch can't be inlined right now, so use as few branches as
390
-
// possible by manually excluding impossible scenarios (position > 1
391
-
// is always false if position is not > 0).
392
-
if(position>0)
393
-
{
394
-
hash=QueueRound(hash,_queue1);
395
-
if(position>1)
396
-
{
397
-
hash=QueueRound(hash,_queue2);
398
-
if(position>2)
399
-
hash=QueueRound(hash,_queue3);
400
-
}
401
-
}
402
-
403
-
hash=MixFinal(hash);
404
-
return(int)hash;
405
-
}
406
-
407
-
#pragma warning disable 0809
408
-
// Obsolete member 'memberA' overrides non-obsolete member 'memberB'.
409
-
// Disallowing GetHashCode and Equals is by design
410
-
411
-
// * We decided to not override GetHashCode() to produce the hash code
412
-
// as this would be weird, both naming-wise as well as from a
413
-
// behavioral standpoint (GetHashCode() should return the object's
414
-
// hash code, not the one being computed).
415
-
416
-
// * Even though ToHashCode() can be called safely multiple times on
417
-
// this implementation, it is not part of the contract. If the
418
-
// implementation has to change in the future we don't want to worry
419
-
// about people who might have incorrectly used this type.
420
-
421
-
[Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.",error:true)]
0 commit comments