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

Syntax

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

Arguments

Name Description
out pPosition Stores the new offset from the beginning of the file.
in offset Specifies the relative offset from the base position.
in type Specifies the base position.

Return Values

Returns the result of the operation.

Description

Changes the starting position for read/writes and returns the result of the process.

Sets the read/write location to a position that is offset removed from the location specified by type. The function stores the position after the change in pPosition and returns a nn::Result-type process result.

Revision History

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

CONFIDENTIAL