The bit mask used to isolate the fragment's bits from the snowflake.
bitMask is equal to maxValue << bitShift
The hexadecimal representation of the bit mask as string.
The number of bits for left and right shifting.
bitShift is equal to the number of bits on the right side
Readonly bitsThe number of bits for the fragment.
The fragment identifier.
Readonly maxThe maximum value that can be represented by this fragment.
maxValue is equal to 2 ** bits - 1
The current value of the fragment.
Internal
Returns a destructured fragment.
Do not use this method outside of a Snowflakify instance.
A destructured fragment object with the following properties:
identifier: The identifier of the ID.value: The value of the fragment for that snowflake.The snowflake to destructure.
Generated using TypeDoc
SequenceFragment class for sequence (increment/counter) IDs.