Mistflake

The Mistflake struct contains information about a mistflake id. The mistflake id consists of the following parts: 1111111111 1111 11111111111 10 4 11 Fields: timestamp = The timestamp field is a UNIX timestamp, and consists of 10 bits workerId = The workerId is the ID of the generator that generated the mistflake. This can be user defined or randomly generated. Consists of 4 bits id = The id field is the unique ID. For every ID that is generated in the generator, the number is incremented. Consists of 11 bits

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

asString
string asString [@property getter]

Generates a string representation out of the object

Static functions

fromString
Mistflake fromString(string s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

id
ulong id;

The unique ID

time
SysTime time;

The UNIX timestamp

worker
ulong worker;

The workers ID

Examples

An example Mistflake ID may look like 1593375000795500000000001

Meta