(uint-128-from-big-int big-int-val)Creates a valid 128-bit unsigned integer from an instance of a BigInteger.
This checks the validity of the value provided to see if it's positive and
within an unsigned 128-bit integer range.
| Parameter | Description |
| --------------|-------------|
| big-int-val | Must be an instance of a 0 < BigInteger < MAX_UINT_128_VALUE |
Returns:
A [[clj.intracel.serde.uint-128-serde/UInt128]] with the :uint-128 field set to the value provided.
Creates a valid 128-bit unsigned integer from an instance of a BigInteger. This checks the validity of the value provided to see if it's positive and within an unsigned 128-bit integer range. | Parameter | Description | | --------------|-------------| | `big-int-val` | Must be an instance of a 0 < BigInteger < `MAX_UINT_128_VALUE` | Returns: A [[clj.intracel.serde.uint-128-serde/UInt128]] with the `:uint-128` field set to the value provided.
(uint-128-from-hex-str hex-str-val)Creates a valid 128-bit unsigned integer using a numeric hexadecimal argument inside a String.
This is a convenience function that calls uint-128-from-big-int.
| Parameter | Description |
| --------------|-------------|
| str-val | Must be a numeric value within a String that will be converted into a BigInteger|
Returns:
A [[clj.intracel.serde.uint-128-serde/UInt128]] with the :uint-128 field set to the value provided.
Creates a valid 128-bit unsigned integer using a numeric hexadecimal argument inside a `String`. This is a convenience function that calls [[uint-128-from-big-int]]. | Parameter | Description | | --------------|-------------| | `str-val` | Must be a numeric value within a String that will be converted into a `BigInteger`| Returns: A [[clj.intracel.serde.uint-128-serde/UInt128]] with the `:uint-128` field set to the value provided.
(uint-128-from-long long-val)Creates a valid 128-bit unsigned integer using a provided long argument.
This is a convenience function that calls uint-128-from-big-int.
| Parameter | Description |
| --------------|-------------|
| long-val | Must be a positive long value that will be converted into a BigInteger|
Returns:
A [[clj.intracel.serde.uint-128-serde/UInt128]] with the :uint-128 field set to the value provided.
Creates a valid 128-bit unsigned integer using a provided `long` argument. This is a convenience function that calls [[uint-128-from-big-int]]. | Parameter | Description | | --------------|-------------| | `long-val` | Must be a positive `long` value that will be converted into a `BigInteger`| Returns: A [[clj.intracel.serde.uint-128-serde/UInt128]] with the `:uint-128` field set to the value provided.
(uint-128-from-str str-val)Creates a valid 128-bit unsigned integer using a provided String argument.
This is a convenience function that calls uint-128-from-big-int.
| Parameter | Description |
| --------------|-------------|
| str-val | Must be a numeric value within a String that will be converted into a BigInteger|
Returns:
A [[clj.intracel.serde.uint-128-serde/UInt128]] with the :uint-128 field set to the value provided.
Creates a valid 128-bit unsigned integer using a provided `String` argument. This is a convenience function that calls [[uint-128-from-big-int]]. | Parameter | Description | | --------------|-------------| | `str-val` | Must be a numeric value within a String that will be converted into a `BigInteger`| Returns: A [[clj.intracel.serde.uint-128-serde/UInt128]] with the `:uint-128` field set to the value provided.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |