- 
                Notifications
    You must be signed in to change notification settings 
- Fork 87
UInt2X
        bigearsenal edited this page May 17, 2022 
        ·
        1 revision
      
    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 Generated at 2022-05-17T08:44:22+0000 using swift-doc 1.0.0-rc.1.
Types
- APIClientError
- APIEndPoint
- Account.Meta
- Account.Meta.CodingKeys
- AccountInfo
- AccountInstructions
- AnyDecodable
- AnyEncodable
- AnyResponse
- AssociatedTokenProgram
- BDouble
- BInt
- BIntMath
- Base58
- BinaryReader
- BlockCommitment
- BorshDecodingError
- BufferInfo
- BufferInfoParsed
- BufferLayoutError
- ClusterNodes
- ConfirmedBlock
- ConfirmedTransaction
- ConfirmedTransaction.Message
- Context
- DataSlice
- DefaultFeeCalculator
- DerivablePath
- DerivablePath.DerivableType
- Ed25519HDKey
- Ed25519HDKey.Error
- Ed25519HDKey.Keys
- EmptyInfo
- EncodableWrapper
- EpochInfo
- EpochSchedule
- ErrorDetail
- Fee
- FeeAmount
- FeeAmount.OtherFee
- FeeCalculatorResponse
- FeeRateGovernor
- Identity
- InflationGovernor
- InflationRate
- InnerInstruction
- Int2X
- Int2XConfig
- JSONRPCAPIClientRequest
- JSONRPCRequestEncoder
- JSONRPCResponse
- JSONRPCResponseDecoder
- Keychain
- Keychain.KeyDerivationError
- LargestAccount
- Mint
- Mnemonic
- Mnemonic.Error
- Network
- OwnerInfoParams
- OwnerValidationProgram
- ParsedInstruction
- PerformanceSample
- Pool
- PreparedTransaction
- ProgramAccount
- ProgramAccounts
- PublicKey
- RIPEMD
- RIPEMD.Block
- RIPEMD.Block.K
- RIPEMD.Block.r
- RIPEMD.Block.s
- RequestAPI
- RequestConfiguration
- Response
- ResponseError
- ResponseErrorData
- Reward
- Rpc
- SignatureInfo
- SignatureStatus
- SimulationResult
- SocketAction
- SocketEntity
- SocketError
- SocketLogsNotificationData
- SocketMethod
- SocketParams
- SocketSignatureNotificationData
- SocketTokenAccountNotificationData
- SocketTokenAccountNotificationDataInfo
- SocketTokenAccountNotificationDataParsed
- SolanaError
- StakeActivation
- Supply
- SwapResponse
- SystemProgram
- SystemProgram.Index
- Throwable
- Token
- TokenAccount
- TokenAccountBalance
- TokenAmount
- TokenBalance
- TokenExtensions
- TokenProgram
- TokenProgram.Index
- TokenSwapInfo
- TokenSwapProgram
- TokenTag
- TokensListParserError
- Transaction
- Transaction.Message
- Transaction.Message.CompiledInstruction
- Transaction.Message.Header
- Transaction.Signature
- TransactionInfo
- TransactionInstruction
- TransactionMeta
- TransactionStatus
- Transfer
- UInt2X
- Version
- VoteAccount
- VoteAccounts
- Wallet
- Wordlists
- WrappingToken
Protocols
Global Typealiases
- Bignum
- BorshCodable
- Commitment
- Decimals
- Int1024
- Int128
- Int1X
- Int256
- Int512
- Lamports
- RequestEncoder
- ResponseDecoder
- SPLTokenDestinationAddress
- SocketLogsNotification
- SocketNativeAccountNotification
- SocketProgramAccountNotification
- SocketSignatureNotification
- SocketSubscriptionResponse
- SocketTokenAccountNotification
- SocketUnsubscriptionResponse
- TransactionError
- TransactionID
- UInt1024
- UInt128
- UInt1X
- UInt256
- UInt512
Global Functions
- abs(_:)
- checkAccountValidation(account:)
- checkIfAssociatedTokenAccountExists(owner:mint:)
- connect()
- disconnect()
- findSPLTokenDestinationAddress(mintAddress:destinationAddress:)
- getAccountInfo(account:)
- getBalance(account:commitment:)
- getBlockCommitment(block:)
- getBlockHeight()
- getBlockTime(block:)
- getClusterNodes()
- getConfirmedBlock(slot:encoding:)
- getConfirmedBlocksWithLimit(startSlot:limit:)
- getConfirmedSignaturesForAddress(account:startSlot:endSlot:)
- getEpochInfo(commitment:)
- getFees(commitment:)
- getMinimumBalanceForRentExemption(dataLength:commitment:)
- getMinimumBalanceForRentExemption(span:)
- getMultipleAccounts(pubkeys:)
- getMultipleMintDatas(mintAddresses:programId:)
- getRecentBlockhash()
- getRecentBlockhash(commitment:)
- getSignatureStatus(signature:configs:)
- getSignatureStatuses(signatures:configs:)
- getTokenAccountBalance(pubkey:commitment:)
- getTokenAccountsByDelegate(pubkey:mint:programId:configs:)
- getTokenAccountsByOwner(pubkey:params:configs:)
- getTokenLargestAccounts(pubkey:commitment:)
- getTokenSupply(pubkey:commitment:)
- getTokenWallets(account:tokensRepository:)
- getTokensList(useCache:)
- getTransaction(transactionSignature:)
- getVersion()
- getVoteAccounts(commitment:)
- minimumLedgerSlot()
- observeSignatureStatus(signature:)
- observeSignatureStatus(signature:timeout:delay:)
- parse(network:)
- prepareCreatingWSOLAccountAndCloseWhenDone(from:amount:payer:minRentExemption:)
- prepareForCreatingAssociatedTokenAccount(owner:mint:feePayer:closeAfterward:)
- prepareSendingNativeSOL(from:to:amount:feePayer:)
- prepareSendingSPLTokens(account:mintAddress:decimals:from:to:amount:feePayer:transferChecked:lamportsPerSignature:minRentExemption:)
- prepareTransaction(instructions:signers:feePayer:feeCalculator:)
- request(with:)
- requestAirdrop(account:lamports:commitment:)
- requestData(request:)
- sendTransaction(preparedTransaction:)
- sendTransaction(transaction:configs:)
- setLogFilter(filter:)
- sha256(data:)
- simulateTransaction(preparedTransaction:)
- simulateTransaction(transaction:configs:)
- subscribe(type:params:commitment:)
- unsubscribe(type:socketId:)
- validatorExit()
Extensions
- Account
- Array
- Bool
- Data
- Dictionary
- Double
- Error
- FixedWidthInteger
- Float32
- Float64
- Int
- NSRegularExpression
- RawRepresentable
- Set
- Socket
- SocketLogsNotification
- SocketNativeAccountNotification
- SocketProgramAccountNotification
- SocketSignatureNotification
- SocketTokenAccountNotification
- String
- StringProtocol
- UInt32
- UInt64
- UInt8
- URLRequest
- URLSession