GetReadableLength

nn::midi::CTR::GetReadableLength Function

Syntax

Result GetReadableLength(
     s32 * pSize
);

Parameters

Name Description
out pSize Location where the data size is stored.

Return Values

Returns the result of the operation.

Value Description
Success Process was successful. The return value's IsSuccess function returns true in this state.
ResultNotOpened The function was executed while the MIDI device was in a closed state. Run the nn::midi::CTR::Open function to open the MIDI device.
ResultBufferOverflow The internal buffer where MIDI data is temporarily stored is full. Run the nn::midi::CTR::Reset function. MIDI data received during this interval is discarded. If this error occurs, the nn::midi::CTR::Read function might be executing too infrequently.
A value other than the above Unexpected error.

Description

Gets the amount of data that has accumulated in the device's buffer.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL