Initializer

init(bitPattern:)

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

Declaration

init(bitPattern x: Int16)

Parameters

x

A value to use as the source of the new instance’s binary representation.

Discussion

This initializer does not perform any range or overflow checking. The resulting instance may not have the same numeric value as bitPattern—it is only guaranteed to use the same pattern of bits in its binary representation.