nn::hio::CTR::HostFile::Write Member Function#include <nn/hio.h>
s32 Write(
const void * buf,
size_t size
);
| Name | Description | |
|---|---|---|
| in | buf | Pointer to the buffer that stores the data to be written. |
| in | size | Maximum number of bytes to write. |
-1. Writes the specified amount of data from a buffer to a file, and returns the size of data (in bytes) that were actually written.
Up to size bytes of data are written to the file from the region at the address specified by buf.
Returns the number of bytes written.
CONFIDENTIAL