DataStreamSerializer

public protocol DataStreamSerializer : Sendable

A type which can serialize incoming Data.

  • Type produced from the serialized Data.

    Declaration

    Swift

    associatedtype SerializedObject : Sendable
  • 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.

Serialization

Available where Self == PassthroughStreamSerializer

Available where Self == StringStreamSerializer