nn::rdt::CTR::Receiver::Receive Member Function

Syntax

nn::Result Receive(
     void * pBuf,
     size_t * pRecvSize,
     size_t bufSize
);

Arguments

Name Description
out pBuf Takes the starting address of the buffer where the received data is written.
out pRecvSize Records the number of bytes that were read from the receive buffer. If no data was readable, this is set to 0.
in bufSize Takes the size (in bytes) of the buffer where the received data is written. If this is set to 0, the function does nothing and returns a non-error value.

Return Values

Returns the function's result. Specifically, the following values may be returned: ResultSuccess, ResultDoNothing, ResultNotInitialized, ResultNullPointer, and ResultUntimelyFunctionCall.

Description

Reads the data that has accumulated in the receive buffer.

Nintendo recommends calling this approximately once per game frame to improve throughput.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL