Generic Type Method

transcode(_:from:)

Converts a scalar from another encoding’s representation, returning nil if the scalar can’t be represented in this encoding.

Declaration

static func transcode<FromEncoding>(_ content: FromEncoding.EncodedScalar, from _: FromEncoding.Type) -> _UIntBuffer<UInt16>? where FromEncoding : _UnicodeEncoding

Discussion

A default implementation of this method will be provided automatically for any conforming type that does not implement one.