Initializer

init(from:)

Creates a new instance by decoding from the given decoder.

Required. Default implementation provided.

Declaration

init(from decoder: Decoder) throws

Parameters

decoder

The decoder to read data from.

Discussion

This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

Default Implementations

SIMD Implementations

init(from: Decoder)

Creates a new vector by decoding scalars from the given decoder.