Seek

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

Syntax

#include <nn/hio.h>

Result Seek(
     s64 * pPosition,
     s64 offset,
     SeekType type
);

s64 Seek(
     s64 offset,
     SeekType type
);

List of Overloaded Member Functions

Seek(s64 *, s64, SeekType) Changes the starting position for read/writes and returns the result of the process.
Seek(s64, SeekType) Changes the starting position for read and write operations, and returns the new offset from the beginning of the file.

Description of Seek(s64 *, s64, SeekType)

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.

Description of Seek(s64, SeekType)

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


CONFIDENTIAL