UInt2X - p2p-org/solana-swift GitHub Wiki
public struct UInt2X<Word:UInt1X>: Hashable, Codable BinaryInteger, Codable, Comparable, CustomDebugStringConvertible, CustomStringConvertible, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, FixedWidthInteger, Hashable, Numeric, Strideable
public typealias IntegerLiteralType = UInt64public typealias Magnitude = UInt2Xpublic typealias Words = [Word.Words.Element]public typealias Stride = Intpublic init(hi:Word, lo:Word) public init(_ source:UInt2X)public init(_ source: Word) public init?<T>(exactly source: T) where T : BinaryInteger public init<T>(_ source: T) where T : BinaryInteger public init?<T>(exactly source: T) where T : BinaryFloatingPoint public init<T>(_ source: T) where T : BinaryFloatingPoint public init<T:BinaryInteger>(truncatingIfNeeded source: T) public init<T:BinaryInteger>(clamping source: T) public init(integerLiteral value: IntegerLiteralType) public init(stringLiteral value: StringLiteralType) public init(_truncatingBits bits: UInt) public var lo:Word = 0public var hi:Word = 0public static var isSigned: Bool public static var bitWidth: Int public static var min:UInt2X public static var max:UInt2X public var magnitude: UInt2X public var description:String public var debugDescription:String public var bitWidth: Int public var words: Words public var trailingZeroBitCount: Int public var nonzeroBitCount: Int public var leadingZeroBitCount: Int public var byteSwapped: UInt2X public func addingReportingOverflow(_ other: UInt2X) -> (partialValue: UInt2X, overflow: Bool) public func addingReportingOverflow(_ other: Word) -> (partialValue: UInt2X, overflow: Bool) public func subtractingReportingOverflow(_ other: UInt2X) -> (partialValue: UInt2X, overflow: Bool) public func subtractingReportingOverflow(_ other: Word) -> (partialValue: UInt2X, overflow: Bool) public func multipliedHalfWidth(by other: Word) -> (high: UInt2X, low: Magnitude) public func multipliedFullWidth(by other: UInt2X) -> (high: UInt2X, low: Magnitude) public func multipliedReportingOverflow(by other: UInt2X) -> (partialValue: UInt2X, overflow: Bool) public func rShifted(_ width:Int)->UInt2X public func lShifted(_ width:Int)->UInt2X public func quotientAndRemainder(dividingBy other: Word) -> (quotient: UInt2X, remainder: UInt2X) public func quotientAndRemainder(dividingBy other: UInt2X) -> (quotient: UInt2X, remainder: UInt2X) public func dividedReportingOverflow(by other :UInt2X) -> (partialValue: UInt2X, overflow:Bool) public func remainderReportingOverflow(dividingBy other :UInt2X) -> (partialValue: UInt2X, overflow:Bool) public func dividingFullWidth(_ dividend: (high: UInt2X, low: Magnitude)) -> (quotient: UInt2X, remainder: UInt2X) public func toString(radix:Int=10, uppercase:Bool=false) -> String public func distance(to other: UInt2X) -> Int public func advanced(by n: Int) -> UInt2X public static func == (_ lhs: UInt2X, _ rhs: UInt2X)->Bool public static func < (lhs: UInt2X, rhs: UInt2X) -> Bool public static prefix func ~(_ value:UInt2X)->UInt2X public static prefix func +(_ value:UInt2X)->UInt2X public static prefix func -(_ value:UInt2X)->UInt2X public static func &+(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func +(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func +(_ lhs:UInt2X, _ rhs:Word)->UInt2X public static func +(_ lhs:Word, _ rhs:UInt2X)->UInt2X public static func += (lhs: inout UInt2X, rhs: UInt2X) public static func += (lhs: inout UInt2X, rhs: Word) public static func &-(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func -(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func -(_ lhs:UInt2X, _ rhs:Word)->UInt2X public static func -(_ lhs:Word, _ rhs:UInt2X)->UInt2X public static func -= (lhs: inout UInt2X, rhs: UInt2X) public static func -= (lhs: inout UInt2X, rhs: Word) public static func &*(lhs: UInt2X, rhs: UInt2X) -> UInt2X public static func &*(lhs: UInt2X, rhs: Word) -> UInt2X public static func &*(lhs: Word, rhs: UInt2X) -> UInt2X public static func *(lhs: UInt2X, rhs: UInt2X) -> UInt2X public static func *(lhs: UInt2X, rhs: Word) -> UInt2X public static func *(lhs: Word, rhs: UInt2X) -> UInt2X public static func *= (lhs: inout UInt2X, rhs: UInt2X) public static func *= (lhs: inout UInt2X, rhs: Word) public static func &>>(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func &>>=(_ lhs:inout UInt2X, _ rhs:UInt2X) public static func &<<(_ lhs:UInt2X, _ rhs:UInt2X)->UInt2X public static func &<<=(_ lhs:inout UInt2X, _ rhs:UInt2X) public static func / (_ lhs:UInt2X, rhs:UInt2X)->UInt2X public static func /= (_ lhs:inout UInt2X, rhs:UInt2X) public static func % (_ lhs:UInt2X, rhs:UInt2X)->UInt2X public static func %= (_ lhs:inout UInt2X, rhs:UInt2X) public static func &= (lhs: inout UInt2X, rhs: UInt2X) public static func |= (lhs: inout UInt2X, rhs: UInt2X) public static func ^= (lhs: inout UInt2X<Word>, rhs: UInt2X<Word>) public static func <<= <RHS>(lhs: inout UInt2X<Word>, rhs: RHS) where RHS : BinaryInteger public static func >>= <RHS>(lhs: inout UInt2X, rhs: RHS) where RHS : BinaryInteger