Logo

Programming-Idioms

History of Idiom 175 > diff from v8 to v9

Edit summary for version 9 by cym13:
New D implementation by user [cym13]

Version 8

2019-02-11, 19:59:47

Version 9

2019-03-19, 16:38:41

Idiom #175 Bytes to hex string

From array a of n bytes, build the equivalent hex string s of 2n digits.
Each byte (256 possible values) is encoded as two hexadecimal characters (16 possible values per digit).

Idiom #175 Bytes to hex string

From array a of n bytes, build the equivalent hex string s of 2n digits.
Each byte (256 possible values) is encoded as two hexadecimal characters (16 possible values per digit).

Extra Keywords
hexa
Extra Keywords
hexa
Imports
import std.digest;
Code
s = a.toHexString;
Doc URL
https://dlang.org/phobos-prerelease/std_digest.html#.toHexString