write(toAbsoluteOffset:_:count:)

Writes the contents of a buffer at the specified offset.

FileDescriptor.swift:435
@discardableResult func write(toAbsoluteOffset offset: Int, _ buffer: [UInt8], count: Int? = nil) throws(Errno) -> Int

Parameters

offset

REQUIRED The file offset where writing begins.

buffer

REQUIRED Te region of memory that contains the data being written.

count

OPTIONAL The bytes you want to read.

Returns

The number of bytes that were written.