func readDataToEndOfFile () -> Data
Reads the available data synchronously up to the end of file or maximum number of bytes.
func readData (ofLength : Int) -> Data
Reads data synchronously up to the specified number of bytes.
var offsetInFile : UInt64
The position of the file pointer within the file represented by the file handle.
func seek(toFileOffset : UInt64)
Moves the file pointer to the specified offset within the file represented by the receiver.
ファイルポインタをレシーバによって表されるファイル内部の指定されたオフセットに移動します。
func closeFile ()
Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing.
表現されたファイルまたは通信経路へのもっと先のアクセスを禁止します、そして書き込み許可する通信経路上のファイルの終端を合図します。
func synchronizeFile ()
Causes all in-memory data and attributes of the file represented by the handle to write to permanent storage.
func truncateFile (atOffset : UInt64)
Truncates or extends the file represented by the file handle to a specified offset within the file and puts the file pointer at that position.