toUint256 method
Sign-extending widen, then reinterpret.
Implementation
Uint256 toUint256() {
final ext = isNegative ? Uint64.max : Uint64.zero;
return Uint256.unsafe(ext, ext, ext, _bits);
}
Sign-extending widen, then reinterpret.
Uint256 toUint256() {
final ext = isNegative ? Uint64.max : Uint64.zero;
return Uint256.unsafe(ext, ext, ext, _bits);
}