jsize is used to get the array length as show below.
// Here buf is a jArray type jsize length = (*env)->GetArrayLength(env, buf);