Data

public extension Data
  • Decode this data into a value, optionally using a specific decoder. If no explicit encoder is passed, then the data is decoded as JSON.

    Declaration

    Swift

    func decoded<T: Decodable>(
        as _: T.Type = T.self,
        using decoder: AnyDecoder = JSONDecoder()
    ) throws -> T
  • Undocumented

    See more

    Declaration

    Swift

    struct HexEncodingOptions : OptionSet
  • Undocumented

    Declaration

    Swift

    func hexEncodedString(options: HexEncodingOptions = []) -> String
  • Undocumented

    Declaration

    Swift

    init?(hexString: String)