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

Syntax

#include <nn/hio.h>

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

Parameters

Name Description
out pWritten Stores the actual number of bytes that were written.
in buf Pointer to the buffer that stores the data to be written.
in size Maximum number of bytes to write.

Return Values

Returns the result of the operation.

Description

Writes the specified amount of data from the buffer to a file and returns the result of the operation.

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.

Revision History

2010/06/14
Added description of arguments and behavior.
2010/03/31
Initial version.

CONFIDENTIAL