UnsignedInteger

public extension UnsignedInteger
  • Creates an unsigned integer from the given bytes by shifting them

    Example:

     let number = UnsignedInteger([0b123, 0b456])
     number == 0b123456
    

    Declaration

    Swift

    init(_ bytes: [UInt8])

    Parameters

    bytes

    Array of bytes