ArrayCoder
public struct ArrayCoder<Properties, Element> : CustomCoder where Properties : ArrayCoderProperties
extension ArrayCoder: CustomDecoder where Element: Decodable
extension ArrayCoder: CustomEncoder where Element: Encodable
Coder for encoding/decoding Arrays. This is extended to support encoding and decoding based on whether Element
is Encodable
or Decodable
.
-
Declaration
Swift
public typealias CodableValue = [Element]
-
Declaration
Swift
public static func decode(from decoder: Decoder) throws -> CodableValue
-
Declaration
Swift
public static func encode(value: CodableValue, to encoder: Encoder) throws