Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::MockHasher Class Reference
Inheritance diagram for net_instaweb::MockHasher:
net_instaweb::Hasher

Public Member Functions

 MockHasher ()
 
 MockHasher (StringPiece hash_value)
 
virtual GoogleString RawHash (const StringPiece &content) const
 
void set_hash_value (const GoogleString &new_hash_value)
 
virtual int RawHashSizeInBytes () const
 The number of bytes RawHash will produce.
 
- Public Member Functions inherited from net_instaweb::Hasher
 Hasher (int max_chars)
 
GoogleString Hash (const StringPiece &content) const
 
int HashSizeInChars () const
 
uint64 HashToUint64 (const StringPiece &content) const
 Uses first 64-bits of hash to make a uint64 version of hash.
 

Constructor & Destructor Documentation

net_instaweb::MockHasher::MockHasher ( )
inline

base64-encodes to "0"

Member Function Documentation

virtual GoogleString net_instaweb::MockHasher::RawHash ( const StringPiece &  content) const
inlinevirtual

Computes a binary hash of the given content. The returned value is not printable as it is the direct binary encoding of the hash. This operation is thread-safe.

Implements net_instaweb::Hasher.


The documentation for this class was generated from the following file: