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

Syntax

virtual Result TrySetSize(
     s64 size
);

Arguments

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

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.

Revision History

2010/12/24
Added a Note.
2010/12/22
Added a link to the error handling page.
2010/06/14
Initial version.

CONFIDENTIAL