nn::fs::FileInputStream::TryInitialize Member Function

Syntax

Result TryInitialize(
     const wchar_t * pathName
);

Result TryInitialize(
     const char * pathName
);

List of Overloaded Member Functions

TryInitialize(const wchar_t *) Tries to open the specified file.
TryInitialize(const char *) Tries to open the specified file.

Description of TryInitialize(const wchar_t *)

It opens the file at the specified path with read-only access and enables reading. Do not call this function if this object has already opened a file.

If an error occurred while trying to open the file, it returns that error.

Description of TryInitialize(const char *)

It opens the file at the specified path with read-only access and enables reading. You cannot call this function if this object already has a file open.

This function returns any error that occurs while it is opening the file.


Note: This function uses a large amount of buffer space on the stack because it converts the path name from a multibyte character string into a wide character string. Pay careful attention to the stack size.


CONFIDENTIAL