Instance MethodSystemPackage


    Writes a sequence of bytes to the current offset and then updates the offset.

    @discardableResult func writeAll<S>(_ sequence: S) throws -> Int where S : Sequence, S.Element == UInt8



    The bytes to write.


    The number of bytes written, equal to the number of elements in sequence.


    This method either writes the entire contents of sequence, or throws an error if only part of the content was written.

    Writes to the position associated with this file descriptor, and increments that position by the number of bytes written. See also seek(offset:from:).

    If sequence doesn’t implement the doc:// method, temporary space will be allocated as needed.