nn::fs::FileInputStream::Read Member Functionvirtual s32 Read( void * buffer, size_t size );
| Name | Description | |
|---|---|---|
| in | buffer | Pointer to the buffer where the data will be copied. |
| in | size | Maximum number of bytes to copy. |
Loads the specified amount of data from a file into a buffer.
Up to size bytes of data are read from the current file position and copied to the region at the address specified by buffer.
Do not access the memory of the specified buffer region (neither reading nor writing) during this function call (for example, from another thread). File reads may be incorrect and the program could stop working in a future version of the SDK.
This function is implemented to show an error screen when errors occur internally, whether or not such errors are fatal. Control does not return from the function in this case. Use nn::fs::FileInputStream::TryRead on everything other than ROM archives.
To read details about error handling, see Handling Errors During File and Directory Operations.
CONFIDENTIAL