StructureSwift

Int32

A 32-bit signed integer value type.

@frozen struct Int32

Members

Typealiases

Initializers

  • init()

    Creates a new value equal to zero.

  • init(integerLiteral: Self)

    Creates an instance initialized to the specified integer value.

  • 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?<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<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(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.

  • 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(Float)

    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(bitPattern: UInt32)

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

  • 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: Float16)

    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(from: Decoder) throws

    Creates a new instance by decoding from the given decoder.

  • init<T>(T)

    Creates a new instance from the given integer.

  • init?<T>(exactly: T)

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

Type Properties

Instance Properties

Type Methods

Instance Methods

Operators

Structures

Conforms To

Removed Members

Instance Properties