nn::fs::FileStream::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 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.
2010/12/22
Added a link to the error handling page.
2010/06/14
Initial version.

CONFIDENTIAL