Appearance
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
| Name | Description |
|---|---|
EncodedLength | Crockford Base32 encoded length. |
Size | Binary size in bytes. |
Properties
| Name | Description |
|---|---|
Empty | The all-zero ULID. |
IsEmpty | True when this value equals Empty. |
TimestampMs | Embedded Unix timestamp in milliseconds. |
TimestampUtc | Embedded 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.