juan_gandhi: (Default)
[personal profile] juan_gandhi
  /** High-quality 64-bit checksum of the content of the object.  Similar
   *  to hashcode(), but a long to reduce the chance of hash clashes.  For
   *  composite objects this should be defined using the subcomponents' checksums
   *  (or hashcodes if not available).  If two Keyed objects have the same
   *  checksum() there should be a 1 - 1/2^64 chance that they are the same
   *  object by value.
   */
  protected long checksum_impl() { throw H2O.fail("Checksum not implemented by class "+this.getClass()); }
  private long _checksum;
  // Efficiently fetch the checksum, setting on first access
  public final long checksum() {
    if( _checksum!=0 ) return _checksum;
    long x = checksum_impl();
    if( x==0 ) x=1;
    return (_checksum=x);
  }


(MD5 or anything? never heard)

Date: 2016-12-25 03:19 pm (UTC)
tanya_kristina: (Default)
From: [personal profile] tanya_kristina
только ф-ла?!

Date: 2016-12-25 03:54 pm (UTC)
bamalip: (Default)
From: [personal profile] bamalip
Ноль особого (на)значения!

Profile

juan_gandhi: (Default)
juan_gandhi

September 2017

S M T W T F S
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
1718 1920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 20th, 2017 06:50 am
Powered by Dreamwidth Studios