View source code
							
							
						
								Display the source code in std/digest/package.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Struct std.digest.ExampleDigest
This documents the general structure of a Digest in the template API.
 All digest implementations should implement the following members and therefore pass
 the isDigest test.
						
				struct ExampleDigest
				;
						
					
				Methods
| Name | Description | 
|---|---|
| finish | The finish function returns the final hash sum and resets the Digest. | 
| put | Use this to feed the digest with data.
 Also implements the isOutputRangeinterface forubyteandconst(ubyte)[].
 The following usages ofputmust work for any type which
 passesisDigest: | 
| start | This function is used to (re)initialize the digest. It must be called before using the digest and it also works as a 'reset' function if the digest has already processed data. | 
Note
Example
//Using the OutputRange feature
import stdAuthors
Johannes Pfau
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.