StaticfromStaticfromCreates an object from a byte array representing either a 128-bit unsigned integer or a 25-digit Base36 string.
This method shallow-copies the content of the argument, so the created object holds another instance of the byte array.
An array of 16 bytes that contains a 128-bit unsigned integer in the big-endian (network) byte order or an array of 25 ASCII code points that reads a 25-digit Base36 string.
StaticfromCreates an object from field values.
A 48-bit timestamp field value.
A 24-bit counter_hi field value.
A 24-bit counter_lo field value.
A 32-bit entropy field value.
StaticfromStaticfromReadonlybytesA 16-byte byte array containing the 128-bit unsigned integer representation in the big-endian (network) byte order.
Returns the 24-bit counter_hi field value.
Returns the 24-bit counter_lo field value.
Returns the 32-bit entropy field value.
Returns the 48-bit timestamp field value.
Returns a negative integer, zero, or positive integer if this is less
than, equal to, or greater than other, respectively.
Returns true if this is equivalent to other.
StaticofCreates an object from the internal representation, a 16-byte byte array containing the 128-bit unsigned integer representation in the big-endian (network) byte order.
This method does NOT shallow-copy the argument, and thus the created object holds the reference to the underlying buffer.
Represents a SCRU128 ID and provides converters and comparison operators.
Example