More size_t->jsize
This commit is contained in:
Родитель
8425d4d6a5
Коммит
ecd0577cba
|
@ -368,9 +368,9 @@ void ReleaseStringUTFChars(jstring str, const char* utfchars)
|
|||
JNI_CALL(str && utfchars, false, env->ReleaseStringUTFChars(str, utfchars));
|
||||
}
|
||||
|
||||
size_t GetArrayLength(jarray obj)
|
||||
jsize GetArrayLength(jarray obj)
|
||||
{
|
||||
JNI_CALL_RETURN(size_t, obj, true, env->GetArrayLength(obj));
|
||||
JNI_CALL_RETURN(jsize, obj, true, env->GetArrayLength(obj));
|
||||
}
|
||||
|
||||
jobjectArray NewObjectArray(jsize length, jclass elementClass, jobject initialElement)
|
||||
|
@ -378,12 +378,12 @@ jobjectArray NewObjectArray(jsize length, jclass elementClass, jobject initialEl
|
|||
JNI_CALL_RETURN(jobjectArray, elementClass, true, env->NewObjectArray(length, elementClass, initialElement));
|
||||
}
|
||||
|
||||
jobject GetObjectArrayElement(jobjectArray obj, size_t index)
|
||||
jobject GetObjectArrayElement(jobjectArray obj, jsize index)
|
||||
{
|
||||
JNI_CALL_RETURN(jobject, obj, true, env->GetObjectArrayElement(obj, index));
|
||||
}
|
||||
|
||||
void SetObjectArrayElement(jobjectArray obj, size_t index, jobject val)
|
||||
void SetObjectArrayElement(jobjectArray obj, jsize index, jobject val)
|
||||
{
|
||||
JNI_CALL(obj, true, env->SetObjectArrayElement(obj, index, val));
|
||||
}
|
||||
|
|
|
@ -79,9 +79,9 @@ jsize GetStringUTFLength(jstring string);
|
|||
const char* GetStringUTFChars(jstring str, jboolean* isCopy = 0);
|
||||
void ReleaseStringUTFChars(jstring str, const char* utfchars);
|
||||
|
||||
size_t GetArrayLength(jarray obj);
|
||||
jobject GetObjectArrayElement(jobjectArray obj, size_t index);
|
||||
void SetObjectArrayElement(jobjectArray obj, size_t index, jobject val);
|
||||
jsize GetArrayLength(jarray obj);
|
||||
jobject GetObjectArrayElement(jobjectArray obj, jsize index);
|
||||
void SetObjectArrayElement(jobjectArray obj, jsize index, jobject val);
|
||||
void* GetPrimitiveArrayCritical(jarray obj, jboolean *isCopy);
|
||||
void ReleasePrimitiveArrayCritical(jarray obj, void *carray, jint mode);
|
||||
jobjectArray NewObjectArray(jsize length, jclass elementClass, jobject initialElement = 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче