Contents

customStream(instance:)

Returns a new archive byte stream instance mapped to an object that conforms to the archive byte stream protocol.

Declaration

static func customStream<C>(instance: C) -> ArchiveByteStream? where C : AnyObject, C : ArchiveByteStreamProtocol

Parameters

  • instance:

    The object that the new archive stream wraps.

Return Value

A new archive byte stream.

See Also

Streaming with Custom Streams