nn::hio::CTR::HostFile::Read Member Function#include <nn/hio.h> s32 Read( void * buf, size_t size );
| Name | Description | |
|---|---|---|
| in | buf | Pointer to the buffer where the data is read into. |
| in | size | Maximum number of bytes to read. |
-1. Reads the specified amount of data from a file into a buffer, and returns the size of data (in bytes) that were actually read.
Up to size bytes of data are read from the current file position and copied to the region at the address specified by buf.
Returns the number of bytes that were copied.
CONFIDENTIAL