Initializer
init(bitPattern:)
Creates an Int256 with the same bit pattern as an unsigned UInt256 value.
- iOS 18.0+
- macCatalyst 18.0+
- macOS 15.0+
- tvOS 18.0+
- visionOS 2.0+
- watchOS 11.0+
init(bitPattern source: UInt256)
Parameters
-
source
-
The unsigned value whose bits are reinterpreted.
Discussion
Preserves the raw 256 bits verbatim; unsigned values ≥ 2^255 become negative Int256 values via two’s-complement interpretation.