Ulid.fromBytes

Ulid fromBytes(const ubyte[BYTE_LENGTH] data) static @safe pure nothrow @nogc

Builds a ULID from its 16-byte binary form (most significant byte first). Every 128-bit value is a valid ULID, so this cannot fail. A slice with compile-time bounds converts implicitly: Ulid.fromBytes(buffer[0 .. 16]).

Parameters

datathe binary form, as produced by Ulid.bytes.

Returns

the ULID.