TryRead

nn::fs::Directory::TryRead Member Function

Syntax

Result TryRead(
     s32 * pNumEntriesOut,
     DirectoryEntry pEntries[],
     s32 numEntries
);

Parameters

Name Description
out pNumEntriesOut Returns the number of entries that were actually loaded. Returns 0 when it has finished scanning all the entries.
out pEntries[] Location to which to load directory entries.
in numEntries Maximum number of directory entries to load.

Return Values

Returns the result of the operation.

Description

Loads the specified number of entries from a directory.

Up to numEntries entries are read from the current file position and copied to the region at the address specified by pEntries.

Error handling will differ, depending on the archive. For details, see Handling Errors During File and Directory Operations.

Revision History

2010/12/22
Added a link to the error handling page.
2010/11/09
Initial version.

CONFIDENTIAL