putAll

Variadic 'put' helper function for digests.

@safe nothrow @nogc
void
putAll
(
D
T...
)
(
ref D digest
,
in T data
)
if (
isStdDigest!D
)

Parameters

digest D

The digest to put the data into.

data T

The data to update the digest with.

Examples

ubyte[4] buf; SHA256 hash; hash.putAll(cast(ubyte) 0x01, buf, buf[0..2]);

Meta