~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to lib/ts/INK_MD5.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
    return buf;
132
132
  }
133
133
 
134
 
  uint64_t fold()
 
134
  uint64_t fold() const
135
135
  {
136
136
    return (b[0] ^ b[1]);
137
137
  }
138
138
 
139
 
  uint64_t operator[] (int i)
 
139
  uint64_t operator[] (int i) const
140
140
  {
141
141
    return b[i];
142
142
  }
143
 
  bool operator==(INK_MD5 & md5)
 
143
  bool operator==(INK_MD5 const& md5)
144
144
  {
145
145
    return b[0] == md5.b[0] && b[1] == md5.b[1];
146
146
  }