UUID.this

Construct a UUID struct from the 16 byte representation of a UUID.

  1. this(ubyte[16] uuidData)
  2. this(ubyte[16] uuidData)
    struct UUID
    @safe pure nothrow @nogc
    this
    (
    const ubyte[16] uuidData
    )
  3. this(T uuidData)
  4. this(T[] uuid)

Examples

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

Meta