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.

Sets the read/write location to a position that is offset removed from the location specified by type. Returns the position after the change.

Revision History

2010/06/14
Added description of arguments and behavior.
2010/03/31
Initial version.

CONFIDENTIAL