Write

nn::hio::CTR::HostFile::Write Member Function

Syntax

#include <nn/hio.h>

Result Write(
     size_t * pWritten,
     const void * buf,
     size_t size
);

s32 Write(
     const void * buf,
     size_t size
);

List of Overloaded Member Functions

Write(size_t *, const void *, size_t) Writes the specified amount of data from the buffer to a file and returns the result of the operation.
Write(const void *, size_t) Writes the specified amount of data from a buffer to a file, and returns the size of data (in bytes) that were actually written.

Description of Write(size_t *, const void *, size_t)

Up to size bytes of data are written to the file from the region at the address specified by buf.
The function stores the number of written bytes to pWritten and returns a nn::Result-type process result.

Description of Write(const void *, size_t)

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