String
extension String
-
Applies AND to two bit strings
Declaration
Swift
public static func & (inputA: String, inputB: String) -> String?
-
Returns the result of combining the bits in the bit string using XOR
Declaration
Swift
public func bitXor() -> Bool?
-
Applies XOR to two bit strings
Declaration
Swift
public static func bitXor(_ inputA: String, _ inputB: String) -> String?
-
Given a
value
, returns its bit string representation withbitCount
lengthDeclaration
Swift
public init(_ value: Int, bitCount: Int)
-
Given a
value
, transforms it into its bit string representation and extractbits
from itDeclaration
Swift
public init(_ value: Int, bits: [Int])