Update the comment of MtpDevice#getObjectSizeLong
am: 1337deb
* commit '1337deb6eac47b9eeef0999a928caba0cfca7126':
Update the comment of MtpDevice#getObjectSizeLong
This commit is contained in:
@@ -358,9 +358,10 @@ public final class MtpDevice {
|
|||||||
/**
|
/**
|
||||||
* Returns object size in 64-bit integer.
|
* Returns object size in 64-bit integer.
|
||||||
*
|
*
|
||||||
* The object size stored in MtpObjectInfo is unsigned 32-bit integer.
|
* Though MtpObjectInfo#getCompressedSize returns the object size in 32-bit unsigned integer,
|
||||||
* The methods reads 64-bit object size from the object property so that it can fetch 4GB+
|
* this method returns the object size in 64-bit integer from the object property. Thus it can
|
||||||
* object size correctly.
|
* fetch 4GB+ object size correctly. If the device does not support objectSize property, it
|
||||||
|
* throws IOException.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public long getObjectSizeLong(int handle, int format) throws IOException {
|
public long getObjectSizeLong(int handle, int format) throws IOException {
|
||||||
|
|||||||
@@ -701,6 +701,8 @@ static void android_mtp_MtpDevice_discard_event_request(JNIEnv *env, jobject thi
|
|||||||
device->discardEventRequest(seq);
|
device->discardEventRequest(seq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returns object size in 64-bit integer. If the MTP device does not support the property, it
|
||||||
|
// throws IOException.
|
||||||
static jlong android_mtp_MtpDevice_get_object_size_long(
|
static jlong android_mtp_MtpDevice_get_object_size_long(
|
||||||
JNIEnv *env, jobject thiz, jint handle, jint format) {
|
JNIEnv *env, jobject thiz, jint handle, jint format) {
|
||||||
MtpDevice* const device = get_device_from_object(env, thiz);
|
MtpDevice* const device = get_device_from_object(env, thiz);
|
||||||
|
|||||||
Reference in New Issue
Block a user