nn::fs::FileOutputStream::TrySetSize Member Function

Syntax

virtual Result TrySetSize(
     s64 size
);

Parameters

Name Description
in size Specifies the file size.

Return Values

Returns the result of the operation.

Description

Sets the file size.

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

Note 1

After the size of the file has been extended, if nothing has been written to that region then in principle the process of reading that region returns nn::fs::ResultVerificationFailed.

Note 2

This function cannot be called for expanded save data. The function will return an error if called in this way. See Archives for details about expanded save data.

Revision History

2011/10/25
Added note about calling for expanded save data.
2010/12/24
Added a Note.
2010/12/22
Added a link to the error handling page.
2010/06/14
Initial version.

CONFIDENTIAL