nnw::io::RomFileStream::WriteAsync Member Function

Syntax

virtual bool WriteAsync(
     const void * buf,
     u32 length,
     IOStreamCallback callback,
     void*           arg
);

Arguments

Name Description
in buf Pointer to the buffer where data to be written is stored. The alignment of this data must match the alignment obtained using the GetBufferAlign function.
in length Data size to be written. The alignment of this data must match the alignment obtained using the GetSizeAlign function.
in callback Registers the callback function to be used when asynchronous processing has finished. If this is NULL, no callback is invoked.
in arg Registers parameters returned by the callback function as arguments when asynchronous processing has completed.

Return Values

Returns TRUE if the command was executed normally.
Returns FALSE if the command was not issued.
If the command could not be issued, no callback is invoked.

Description

Writes data to the stream (asynchronous process).


CONFIDENTIAL