[#BloombergLP-bdlde-Md5-update] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Md5.adoc[Md5]::update :relfileprefix: ../../../ :mrdocs: Update this MD5 digest to incorporate the specified data. == Synopsis Declared in `<bdlde_md5.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void update( void const* data, int length); ---- == Description Update the value of this MD5 digest to incorporate the specified `data` having the specified `length` in bytes. If the current state is the default state, the resultant value of this MD5 digest is the application of the MD5 algorithm upon the currently given `data` of the given `length`. If this digest has been previously provided data and has not been subsequently reset, the current state is not the default state and the resultant value is equivalent to applying the MD5 algorithm upon the concatenation of all the provided data. The behavior is undefined unless `0 <= length`. Note that if `data` is 0, then `length` also must be 0. == Parameters [cols="1,4"] |=== | Name| Description | *data* | memory region to incorporate | *length* | number of bytes in `data` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#