toHex

Conversion an integer type to a fixed-length hexadecimal string.

  1. template toHex(alias digits = hexDigits)
  2. void toHex(T n, char[U] buf)
    void
    toHex
    (
    T : ulong
    size_t U = T.sizeof * 2
    )
    (
    T n
    ,
    ref char[U] buf
    )
  3. char[T.sizeof * 2] toHex(T n)

Meta