nw::io::FileStream::ReadAsync Member Function

Syntax

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

Arguments

Name Description
out buf Pointer to the buffer where data to be read is stored. The alignment of this data must match the alignment obtained using the GetBufferAlign function.
in length Data size to be read. 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

Reads data from the stream (asynchronous process).


CONFIDENTIAL