read(fromAbsoluteOffest:into:count:)

Reads bytes at the specified offset into a buffer.

FileDescriptor.swift:245
@discardableResult func read(fromAbsoluteOffest offset: Int, into buffer: inout [UInt8], count: Int? = nil) throws(Errno) -> Int

Parameters

offset

REQUIRED The file offset where reading begins.

buffer

REQUIRED Te region of memory to read into.

count

OPTIONAL The bytes you want to read.

Returns

The bytes successfully read.