nn::fs::FileOutputStream::TryWrite Member Function

Syntax

virtual Result TryWrite(
     s32 * pOut,
     const void * buffer,
     size_t size
);

Arguments

Name Description
out pOut Stores the size of data (in bytes) that were actually copied. The value 0 is stored if the function reaches the end of the file.
in buffer Pointer to the buffer that contains the data to write.
in size Maximum number of bytes to write to the file.

Return Values

Returns the size of data (in bytes) that were actually copied. Returns 0 if it reached the end of the file.

Description

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. Returns the size of data (in bytes) that were actually written.

Returns 0 if it reaches the end of the file.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL