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.

std.digest.ExampleDigest.finish - multiple declarations

Function ExampleDigest.finish

The finish function returns the final hash sum and resets the Digest.

ubyte[16] finish() @trusted;

Note

The actual type returned by finish depends on the digest implementation. ubyte[16] is just used as an example. It is guaranteed that the type is a static array of ubytes.

  • Use DigestType to obtain the actual return type.
  • Use digestLength to obtain the length of the ubyte array.

Function ExampleDigest.finish

The finish function returns the final hash sum and resets the Digest.

ubyte[16] finish() @trusted;

Note

The actual type returned by finish depends on the digest implementation. ubyte[16] is just used as an example. It is guaranteed that the type is a static array of ubytes.

  • Use DigestType to obtain the actual return type.
  • Use digestLength to obtain the length of the ubyte array.

Authors

Johannes Pfau

License

Boost License 1.0.