hexDigest

This overload of the hexDigest function handles arrays.

  1. char[digestLength!(Hash) * 2] hexDigest(Range range)
  2. char[digestLength!(Hash) * 2] hexDigest(T data)
    char[digestLength!(Hash) * 2]
    hexDigest
    (
    Hash
    T...
    )
    (
    scope const T data
    )

Parameters

order

the order in which the bytes are processed (see toHexString)

data T

one or more arrays of any type

Examples

import std.digest.crc;
assert(hexDigest!(CRC32, Order.decreasing)("The quick brown fox jumps over the lazy dog") == "414FA339");
import std.digest.crc;
assert(hexDigest!(CRC32, Order.decreasing)("The quick ", "brown ", "fox jumps over the lazy dog") == "414FA339");

Meta

Suggestion Box / Bug Report