ECode CInterfaceInfo::GetMethodCount(
    /* [out] */ Int32* count)
{
    if (!count) {
        return E_INVALID_ARGUMENT;
    }

    if (!mIFList) {
        ECode ec = CreateIFList();
        if (FAILED(ec)) return ec;
    }

    *count = 0;
    for (UInt32 i = 0; i < mIFCount; i++) {
        *count += mIFList[i].mDesc->mMethodCount;
    }

    return NOERROR;
}
Example #2
0
ECode CClassInfo::Init()
{
    return CreateIFList();
}
ECode CInterfaceInfo::Init()
{
    return CreateIFList();
}