nn::fs::FileStream::Read Member Function

Syntax

virtual s32 Read(
     void * buffer,
     size_t size
);

Arguments

Name Description
in buffer Pointer to the buffer where the data will be copied.
in size Maximum number of bytes to copy.

Return Values

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

Description

Loads the specified amount of data from a file into a buffer.

Up to size bytes of data are read from the current file position and copied to the region at the address specified by buffer.

This function does not return processing results and it is therefore impossible to handle errors. In general, use TryRead.

Revision History

2010/01/29
Initial version.

CONFIDENTIAL