nn::fs::FileOutputStream::Write Member Function
virtual s32 Write(
const void * buffer,
size_t size,
bool flush = true
);
| Name | Description | |
|---|---|---|
| in | buffer | Pointer to the buffer that contains the data to write. |
| in | size | Maximum number of bytes to write to the file. |
| in | flush | Specifies whether to write back to the device. |
Writes the specified amount of data from a buffer to a file.
Up to size bytes of data are written to the file from the region at the address specified by buffer.
If you have specified a value of false for the flush argument, do not call the Finalize function until you have either called TryFlush or called this function with flush set equal to true.
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::FileOutputStream::TryWrite on everything other than ROM archives.
To read details about error handling, see Handling Errors During File and Directory Operations.
CONFIDENTIAL