Skip to content

Ulid Struct ​

Definition ​

A 128-bit ULID (Universally Unique Lexicographically Sortable Identifier): 48-bit Unix millisecond timestamp + 80-bit entropy, Crockford Base32 (26 chars).

  • Namespace: JASE
  • Assembly: JASE.IdGenerator.dll

Value type
Instances of this type are copied by value.

Fields ​

NameDescription
EncodedLengthCrockford Base32 encoded length.
SizeBinary size in bytes.

Properties ​

NameDescription
EmptyThe all-zero ULID.
IsEmptyTrue when this value equals Empty.
TimestampMsEmbedded Unix timestamp in milliseconds.
TimestampUtcEmbedded timestamp as UTC.

Remarks ​

Layout matches the ULID spec: timestamp in the high-order bytes so values sort by creation time. Generate is allocation-free; string forms allocate only when converting to a string is requested.