Dart Documentationfixnumintx

intx Interface

A fixed-precision integer.

Extends

Hashable, Comparable

Implemented by

int32, int64

Methods

Code intx abs() #

intx abs();

Code int compareTo(Comparable other) #

int compareTo(Comparable other);

Code int hashCode() #

int hashCode();

Code bool isEven() #

bool isEven();

Code bool isMaxValue() #

bool isMaxValue();

Code bool isMinValue() #

bool isMinValue();

Code bool isNegative() #

bool isNegative();

Code bool isOdd() #

bool isOdd();

Code bool isZero() #

bool isZero();

Code int numberOfLeadingZeros() #

Returns the number of leading zeros in this intx as an int between 0 and 64.

int numberOfLeadingZeros();

Code int numberOfTrailingZeros() #

Returns the number of trailing zeros in this intx as an int between 0 and 64.

int numberOfTrailingZeros();

Code intx operator &(other) #

intx operator &(other);

Code bool operator >(other) #

bool operator >(other);

Code intx operator negate() #

intx operator -();

Code intx operator *(other) #

intx operator *(other);

Code intx operator %(other) #

intx operator %(other);

Code intx operator ~/(other) #

intx operator ~/(other);

Code bool operator >=(other) #

bool operator >=(other);

Code intx operator >>(int shiftAmount) #

intx operator >>(int shiftAmount);

Code bool operator <=(other) #

bool operator <=(other);

Code bool operator <(other) #

bool operator <(other);

Code bool operator ==(other) #

bool operator ==(other);

Code intx operator -(other) #

intx operator -(other);

Code intx operator |(other) #

intx operator |(other);

Code intx operator ^(other) #

intx operator ^(other);

Code intx operator <<(int shiftAmount) #

intx operator <<(int shiftAmount);

Code intx operator ~() #

intx operator ~();

Code intx operator +(other) #

intx operator +(other);

Code intx remainder(other) #

intx remainder(other);

Code intx shiftRightUnsigned(int shiftAmount) #

intx shiftRightUnsigned(int shiftAmount);

Code List<int> toBytes() #

Converts this intx to a List of int, starting with the least significant byte.

List<int> toBytes();

Code String toHexString() #

Returns the value of this intx as a hexadecimal String.

String toHexString();

Code int toInt() #

Converts this intx to an int. On some platforms, inputs with large absolute values (i.e., > 2^52) may lose some of their low bits.

int toInt();

Code int32 toInt32() #

Converts an intx to 32 bits. Narrower values are sign extended and wider values have their high bits truncated.

int32 toInt32();

Code int64 toInt64() #

Converts an intx to 64 bits.

int64 toInt64();

Code String toRadixString(int radix) #

Returns the value of this intx as a String in the given radix. radix must be an integer between 2 and 16, inclusive.

String toRadixString(int radix);

Code String toString() #

Returns the value of this intx as a decimal String.

String toString();