OutputStream

class OutputStream : Stream
  • A convenience function to write as much data to an output stream as possible. Maybe not all data can be written at once. The amount of bytes that have been written will be returned.

    Declaration

    Swift

    func write(data: Data) -> Int

    Parameters

    data

    The data that should be written to the output stream.

    Return Value

    The amount of bytes, that have been written to the output stream.