BitBlob.toString

Format the hash as a lowercase hex string

Used by std.format and other formatting primitives. Does not allocate/throw if the sink does not allocate/throw.

  1. void toString(void delegate(const(char)[]) @(safe) sink)
  2. void toString(void delegate(const(char)[]) @(safe) sink, FormatSpec!char spec)
    struct BitBlob(size_t Size)
    @safe const
    void
    toString
    (
    scope void delegate
    (
    const(char)[]
    )
    @safe
    sink
    ,
    scope const ref FormatSpec!char spec
    )
  3. string toString()

Parameters

sink void delegate
(
const(char)[]
)
@safe

A delegate that can be called repeatedly to accumulate the data

spec FormatSpec!char

The format spec to be used for the hex string representation. 's' (which is default) - 0x prefix and lowercase hex 'X' : uppercase hex 'x' : lowercase hex

See Also

Meta