nn::fs::FileStream::SetSize Member Function

Syntax

virtual void SetSize(
     s64 size
);

Arguments

Name Description
in size Specifies the file size.

Return Values

None.

Description

Sets the file size.

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::FileStream::TrySetSize on everything other than ROM archives.

To read details about error handling, see Handling Errors During File and Directory Operations.

Note

After the size has been extended with this function, if nothing has been written to that region, then in principle the process of reading that region will return nn::fs::ResultVerificationFailed.

Revision History

2010/12/24
Added a Note.
Added a link to the page about error handling.
2010/01/29
Initial version.

CONFIDENTIAL