Write

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

Syntax

#include <nn/hio.h>

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

Arguments

Name Description
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 actual number of bytes that were written. If an error occurred, it returns -1.

Description

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.

Revision History

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

CONFIDENTIAL