Uint8 extension type

A robust, heap-allocated 8-bit unsigned integer wrapper utilizing dart:typed_data.

Unlike the zero-cost variant, Uint8 is strictly backed by an Uint8List(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

Uint8(Uint8List _data)
Uint8.from(int value)
Dynamically instantiates a Uint8 value mapped sequentially into memory.

Properties

value int
Extracts the underlying raw Dart int strictly clamped.
no setter

Methods

addChecked(Uint8 other) Uint8
Adds other dynamically intercepting any numerical layout overflow triggering a Dart StateError.
mulChecked(Uint8 other) Uint8
Evaluates exact strict mathematical bounding conditions without truncating natively.
subChecked(Uint8 other) Uint8
Subtracts other throwing a programmatic bounds break upon underflow.

Operators

operator %(Uint8 other) Uint8
Modulo remainder constraint matching natively bounded data models.
operator &(Uint8 other) Uint8
Bitwise AND logically coupled to bit patterns.
operator *(Uint8 other) Uint8
Multiplication mathematically clipped naturally to standard hardware constraints.
operator +(Uint8 other) Uint8
Standard addition. Natively handles and wraps exact numerical overflows gracefully.
operator -(Uint8 other) Uint8
Standard subtraction. Computes precise arithmetic underflows independently.
operator <(Uint8 other) bool
Returns true if this value evaluates less than other.
operator <<(int shiftAmount) Uint8
Left-shifts the integer's bits gracefully overflowing when passing the bit barrier.
operator <=(Uint8 other) bool
Returns true if this bounds-checked value is less than or equal to other.
operator >(Uint8 other) bool
Strict evaluation if this numerical element is larger.
operator >=(Uint8 other) bool
Strict evaluation extending identical size bounds.
operator >>(int shiftAmount) Uint8
Right-shifts the numerical data maintaining standard sign retention.
operator >>>(int shiftAmount) Uint8
Right-shift explicitly padding zeros unconditionally.
operator ^(Uint8 other) Uint8
Bitwise XOR operator.
operator |(Uint8 other) Uint8
Bitwise OR operator.
operator ~() Uint8
Bitwise NOT standardly shifting limits.
operator ~/(Uint8 other) Uint8
Truncating division.

Static Properties

max Uint8
Returns the statically-bounded maximum value of a 8-bit unsigned integer (255).
final
min Uint8
Returns the statically-bounded minimum value of a 8-bit unsigned integer (0).
final