nn::hio::CTR::HostFile::Seek Member Function

Syntax

#include <nn/hio.h>
s64 Seek(
     s64 offset,
     SeekType type
);

Arguments

Name Description
in offset Specifies the relative offset from the base position.
in type Specifies the base position.

Return Values

Returns the new offset from the beginning of the file. If an error occurred, it returns -1.

Description

Changes the starting position for read and write operations, and returns the new offset from the beginning of the file.

Revision History

2010/03/31
Initial version.

CONFIDENTIAL