DataStreamSerializer

public protocol DataStreamSerializer

A type which can serialize incoming Data.

  • Type produced from the serialized Data.

    Declaration

    Swift

    associatedtype SerializedObject
  • Serializes incoming Data into a SerializedObject value.

    Throws

    Any error produced during serialization.

    Declaration

    Swift

    func serialize(_ data: Data) throws -> SerializedObject

    Parameters

    data

    Data to be serialized.