object inttypes
- Annotations
- @extern()
- Alphabetic
- By Inheritance
- inttypes
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def imaxabs(j: intmax_t): intmax_t
Calculates the absolute value of an integer of any size.
Calculates the absolute value of an integer of any size. The imaxabs function is similar to llabs() and labs(). The only difference being that the return value and the argument passed in are of type intmax_t. (since C99)
- returns
The imaxabs function returns the absolute value of the argument. There's no error return. See also https://en.cppreference.com/w/cpp/numeric/math/abs
- def imaxdiv(numer: intmax_t, denom: intmax_t, result: Ptr[imaxdiv_t]): Unit
Computes the quotient and the remainder of two integer values of any size as a single operation.
Computes the quotient and the remainder of two integer values of any size as a single operation.
Example
val res = stackalloc[imaxdiv_t]() imaxdiv(45, 7, res) res._1 // 6 res._2 // 3- numer
The numerator.
- denom
The denominator.
- result
The pointer to struct of type imaxdiv_t to store quotient and remainder. C spec defines
imaxdivas(intmax_t,intmax_t) => imaxdiv_t, but due to the limitation of scala native (scala native not supporting passing struct between scalanative and c), this function takes result struct as workaround. See also https://en.cppreference.com/w/c/numeric/math/div#imaxdiv_t
- Annotations
- @name("scalanative_inttypes_imaxdiv")
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def strtoimax(nptr: CString, endptr: Ptr[Ptr[CChar]], base: CInt): intmax_t
The strtoimax function is equivalent to the strtol, strtoll functions, except that the initial portion of the string is converted to intmax_t representation.(since C99)
The strtoimax function is equivalent to the strtol, strtoll functions, except that the initial portion of the string is converted to intmax_t representation.(since C99)
- nptr
to the null-terminated byte string to be interpreted
- endptr
pointer to a pointer to character.
- base
base of the interpreted integer value
- returns
the converted value, if any.If no conversion could be performed, zero is returned. If the correct value is outside the range of representable values, INTMAX_MAX or INTMAX_MIN is returned See also https://en.cppreference.com/w/c/string/byte/strtoimax
- def strtoumax(nptr: CString, endptr: Ptr[Ptr[CChar]], base: CInt): intmax_t
The strtoumax function is equivalent to the strtoul, and strtoull functions, except that the initial portion of the string is converted to uintmax_t representation.
The strtoumax function is equivalent to the strtoul, and strtoull functions, except that the initial portion of the string is converted to uintmax_t representation. (since C99)
- nptr
to the null-terminated byte string to be interpreted
- endptr
pointer to a pointer to character.
- base
of the interpreted integer value
- returns
the converted value, if any.If no conversion could be performed, zero is returned. If the correct value is outside the range of representable values,INTMAX_MAX, INTMAX_MIN, or UINTMAX_MAX is returned. See also https://en.cppreference.com/w/c/string/byte/strtoimax
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()