Writes the contents of a buffer at the current file offset.
func write(_ buffer: UnsafeRawBufferPointer, retryOnInterrupt: Bool = true) throws -> Int
The number of bytes that were written.
After writing, this method increments the file’s offset by the number of bytes written. To change the file’s offset, call the
The corresponding C function is