UUID.this

Construct a UUID struct from the 16 byte representation of a UUID. Variadic constructor to allow a simpler syntax, see examples. You need to pass exactly 16 ubytes.

  1. this(ubyte[16] uuidData)
  2. this(ubyte[16] uuidData)
  3. this(T uuidData)
    struct UUID
    @safe pure
    this
    (
    T...
    )
    if (
    uuidData.length == 16 &&
    )
  4. this(T[] uuid)

Examples

auto tmp = UUID(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
assert(tmp.data == cast(ubyte[16])[0,1,2,3,4,5,6,7,8,9,10,11,
    12,13,14,15]);

Meta