Packages

object inttypes

Annotations
@extern()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. inttypes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type imaxdiv_t = CStruct2[intmax_t, intmax_t]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. 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

  12. 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 imaxdiv as (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")
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. 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

  18. 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

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped