StructureSwift

    UInt16

    A 16-bit unsigned integer value type.

    @frozen struct UInt16

    Members

    Typealiases

    NIOConcurrencyHelpers

    Initializers

    • init()

      Creates a new value equal to zero.

    • init?(String)

      Creates a new integer value from the given string.

    • init<T>(T)

      Creates an integer from the given floating-point value, rounding toward zero. Any fractional part of the value passed as source is removed.

    • init(Float80)

      Creates an integer from the given floating-point value, rounding toward zero.

    • init(Double)

      Creates an integer from the given floating-point value, rounding toward zero.

    • init(Float16)

      Creates an integer from the given floating-point value, rounding toward zero.

    • init(Float)

      Creates an integer from the given floating-point value, rounding toward zero.

    • init<T>(T)

      Creates a new instance from the given integer.

    • init?<S>(S, radix: Int)

      Creates a new integer value from the given string and radix.

    • init(bigEndian: Self)

      Creates an integer from its big-endian representation, changing the byte order if necessary.

    • init(bitPattern: Int16)

      Creates a new instance with the same memory representation as the given value.

    • init<Other>(clamping: Other)

      Creates a new instance with the representable value that’s closest to the given integer.

    • init?<T>(exactly: T)

      Creates an integer from the given floating-point value, if it can be represented exactly.

    • init?(exactly: Float80)

      Creates an integer from the given floating-point value, if it can be represented exactly.

    • init?(exactly: Double)

      Creates an integer from the given floating-point value, if it can be represented exactly.

    • init?(exactly: Float)

      Creates an integer from the given floating-point value, if it can be represented exactly.

    • init?(exactly: Float16)

      Creates an integer from the given floating-point value, if it can be represented exactly.

    • init?<T>(exactly: T)

      Creates a new instance from the given integer, if it can be represented exactly.

    • init(from: Decoder) throws

      Creates a new instance by decoding from the given decoder.

    • init(integerLiteral: Self)

      Creates an instance initialized to the specified integer value.

    • init(littleEndian: Self)

      Creates an integer from its little-endian representation, changing the byte order if necessary.

    • init<T>(truncatingIfNeeded: T)

      Creates a new instance from the bit pattern of the given instance by truncating or sign-extending if needed to fit this type.

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    NIOWebSocket

    ArgumentParser

    Type Properties

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    ArgumentParser

    Instance Properties

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    ArgumentParser

    Type Methods

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    ArgumentParser

    Instance Methods

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    ArgumentParser

    Type Operators

    Foundation

    Grammar

    Atomics

    NIOConcurrencyHelpers

    ArgumentParser

    Structures

    Atomics

    Removed Members

    Initializers

      Foundation

      Instance Properties