putAll

Variadic 'put' helper function for digests.

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

Parameters

digest
Type: D

The digest to put the data into.

data
Type: T

The data to update the digest with.

Examples

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

Meta