This class represents an MD5 digest that can be updated as additional data is provided.

Synopsis

Declared in <bdlde_md5.h>

class Md5;

Description

More generally, this class supports a complete set of value semantic operations, including copy construction, assignment, equality comparison, ostream printing, and bdex serialization. (A precise operational definition of when two instances have the same value can be found in the description of operator== for the class.) This container is exception neutral with no guarantee of rollback: if an exception is thrown during the invocation of a method on a pre‐existing instance, the class is left in a valid state, but its value is undefined. In no event is memory leaked. Finally, aliasing (e.g., using all or part of an object as both source and destination) is supported in all cases.

Type Aliases

Name

Description

Md5Digest

A maximally‐aligned, 16‐byte object type used to represent an MD5 digest.

Member Functions

Name

Description

Md5 [constructor]

Constructors

~Md5 [destructor]

Destroy this MD5 digest.

operator=

Assign to this MD5 digest the value of the specified rhs MD5 digest and return a reference to this modifiable MD5 digest.

bdexStreamIn

Assign to this object the value read from the specified input stream.

bdexStreamOut

Write this value to the specified output stream.

loadDigest

Load the current value of this MD5 digest into the specified result.

loadDigestAndReset

Load the current value of this MD5 digest into the specified result and set the value of this MD5 digest to the value provided by the default constructor.

print

Format the current value of this MD5 digest to the specified output stream and return a reference to the modifiable stream.

reset

Reset the value of this MD5 digest to the value provided by the default constructor.

update

Update this MD5 digest to incorporate the specified data.

Static Member Functions

Name

Description

maxSupportedBdexVersion

maxSupportedBdexVersion overloads

Friends

Name

Description

BloombergLP::bdlde::operator==

Return true if the specified lhs and rhs MD5 digests have the same value.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs MD5 digests do not have the same value.

Created with MrDocs