Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
private digestType!Hash _digestImpl(Hash)(scope const(void[])[] data...) { Hash hash; hash.start(); foreach(datum; data) hash.put(cast(const(ubyte[]))datum); return hash.finish(); } digestType!Hash digest(Hash, Range)(Range data) if(isDigestableRange!Range) { Hash hash; hash.start(); copy(data, hash); return hash.finish(); } //template bloat? digestType!Hash digest(Hash, T...)(scope const T args) if(args.length > 1 || ( args.length == 1 && !isDigestableRange!(typeof(args[0])))) { return _digestImpl!(Hash)(args); }
Username
Message
Add comment
Paste info
Author:
Guest
Views:
135
Private:
no
Expires:
Never
Uploaded:
09.08.12 11:03
Votes
:
0
Tweet
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason