StreamWritable
public protocol StreamWritable
Protocol for stream-serialization of objects.
A type implementing this protocol can write itself into an OutputStream.
If an object should also be stream-deserializable, it must implement the StreamReadable-protocol.
-
Writes the object into the given stream.
If any write operation fails, this method may throw an IOError.
Throws
An IOError indicating that the operation failed.
Declaration
Swift
func write(to outputStream: OutputStream) throws
Parameters
outputStream
Stream to write this object to