TAILIEUCHUNG - 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

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.