Int32 extension type
A robust, heap-allocated 32-bit signed integer wrapper utilizing dart:typed_data.
Unlike the zero-cost variant, Int32 is strictly backed by an Int32List(1).
This inherently bounds the variable within standard memory specifications and rigorously
guarantees that mathematical operators intuitively overflow using C++ style
constraints, exactly mimicking real hardware boundaries, providing complete safety!
- on
Constructors
- Int32(Int32List _data)
- Int32.from(int value)
- Dynamically instantiates a Int32 value mapped sequentially into memory.
Properties
Methods
-
addChecked(
Int32 other) → Int32 -
Adds
otherdynamically intercepting any numerical layout overflow triggering a Dart StateError. -
mulChecked(
Int32 other) → Int32 - Evaluates exact strict mathematical bounding conditions without truncating natively.
-
subChecked(
Int32 other) → Int32 -
Subtracts
otherthrowing a programmatic bounds break upon underflow.
Operators
-
operator %(
Int32 other) → Int32 - Modulo remainder constraint matching natively bounded data models.
-
operator &(
Int32 other) → Int32 - Bitwise AND logically coupled to bit patterns.
-
operator *(
Int32 other) → Int32 - Multiplication mathematically clipped naturally to standard hardware constraints.
-
operator +(
Int32 other) → Int32 - Standard addition. Natively handles and wraps exact numerical overflows gracefully.
-
operator -(
Int32 other) → Int32 - Standard subtraction. Computes precise arithmetic underflows independently.
-
operator <(
Int32 other) → bool -
Returns true if this value evaluates less than
other. -
operator <<(
int shiftAmount) → Int32 - Left-shifts the integer's bits gracefully overflowing when passing the bit barrier.
-
operator <=(
Int32 other) → bool -
Returns true if this bounds-checked value is less than or equal to
other. -
operator >(
Int32 other) → bool - Strict evaluation if this numerical element is larger.
-
operator >=(
Int32 other) → bool - Strict evaluation extending identical size bounds.
-
operator >>(
int shiftAmount) → Int32 - Right-shifts the numerical data maintaining standard sign retention.
-
operator ^(
Int32 other) → Int32 - Bitwise XOR operator.
-
operator |(
Int32 other) → Int32 - Bitwise OR operator.
-
operator ~(
) → Int32 - Bitwise NOT standardly shifting limits.
-
operator ~/(
Int32 other) → Int32 - Truncating division.