MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / numElements

Function numElements

lib/jacob-1.20_src/jacob-1.20/jni/SafeArray.cpp:352–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static int numElements(SAFEARRAY *psa)
353{
354 int nDims = SafeArrayGetDim(psa);
355 int elems = 0;
356 for(int i=1;i<=nDims;i++) {
357 long lb, ub;
358 SafeArrayGetLBound(psa, i, &lb);
359 SafeArrayGetUBound(psa, i, &ub);
360 elems += ub - lb + 1;
361 }
362 return elems;
363}
364
365/*
366 * Class: SafeArray

Calls

no outgoing calls

Tested by

no test coverage detected