Appearance
Decode Method
Definition
- Namespace:
JASE - Assembly:
JASE.IdGenerator.dll
OrderedIdValue Decode(long id)
csharp
OrderedIdValue Decode(long id)Decodes an identifier into its component fields (timestamp, node id, sequence).
Parameters
| Name | Description |
|---|---|
id | The 64-bit identifier to decode. |
Returns
A decoded view of the identifier, including: Timestamp milliseconds since Epoch (41 bits)UTC timestamp (DateTimeOffset) reconstructed from the stored timestampNode id (10 bits)Sequence (12 bits)
Remarks
In LogicalClock, decoded UTC timestamps may be slightly ahead of real UTC time by up to the configured skew bound.