__anonymous.data

It is sometimes useful to get or set the 16 bytes of a UUID directly.

Note: UUID uses a 16-ubyte representation for the UUID data. RFC 4122 defines a UUID as a special structure in big-endian format. These 16-ubytes always equal the big-endian structure defined in RFC 4122.

union __anonymous
ubyte[16] data;

Examples

auto rawData = uuid.data; //get data
rawData[0] = 1; //modify
uuid.data = rawData; //set data
uuid.data[1] = 2; //modify directly

Meta