nn::hio::CTR::HostFile::Read Member Function#include <nn/hio.h> Result Read( size_t * pRead, void * buf, size_t size );
| Name | Description | |
|---|---|---|
| out | pRead | Stores the actual number of bytes that were copied. If the end of the file is reached, it stores the value 0. |
| in | buf | Pointer to the buffer where the data is read into. |
| in | size | Maximum number of bytes to read. |
Reads the specified amount of data from a file into a buffer, and returns the result of the operation.
Up to size bytes of data are read from the current file position and copied to the region at the address specified by buf.
The function stores the number of copied bytes in pRead and returns a nn::Result-type process result.
CONFIDENTIAL