tailieunhanh - The Java Native InterfaceProgrammer’s Guide and Specification phần 10

Thông báo việc thực hiện máy ảo mã nguồn gốc không còn nhu cầu truy cập đến carray, kết quả của một cuộc gọi GetPrimitiveArrayCritical trước đó. Nếu cần thiết, chức năng này sao chép lại tất cả các thay đổi được thực hiện để carray đến các mảng ban đầu. Đối số chế độ | JNIFUNCTIONS Release Type ArrayElements Linkage Indices in the JNIEnv interface function table. Release Type ArrayElements Index ReleaseBooleanArrayElements 191 ReleaseByteArrayElements 192 ReleaseCharArrayElements 193 ReleaseShortArrayElements 194 ReleaselntArrayElements 195 ReleaseLongArrayElements 196 ReleaseFloatArrayElements 197 ReleaseDoubleArrayElements 198 Parameters env the JNIEnv interface pointer. array a reference to an array object. elems a pointer to array elements. mode the release mode. Exceptions None. 275 ReleasePrimitiveArrayCritical JNI FUNCTIONS ReleasePrimitiveArrayCritical Prototype Description void ReleasePrimitiveArrayCritical JNIEnv env jarray array void carray jint mode Informs the virtual machine implementation that native code no longer needs access to carray the result of a previous GetPrimitiveArrayCritical call. If necessary this function copies back all changes made to carray to the original array. The mode argument provides information on how the array buffer should be released. The mode argument has no effect if carray is not a copy of the elements in array. Otherwise mode has the following impact as shown in the following table Mode Actions 0 copy back and free the carray buffer JNI_COMMIT copy back but do not free the carray buffer JNI_ABORT free the buffer without copying back the possible changes in the carray buffer In most cases programmers pass 0 to the mode argument to ensure consistent behavior for copied arrays. The other options give the programmer more control over memory management and should be used with extreme care. This function was introduced in Java 2 SDK release . Linkage Index 223 in the JNIEnv interface function table. Parameters env the JNIEnv interface pointer. array a reference to an array object. carray a pointer to array elements. mode the release mode. Exceptions None. 276 JNIFUNCTIONS ReleaseStringChars ReleaseStringChars Prototype void ReleaseStringChars JNIEnv env jstring string const jchar chars

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.