Condividi tramite


AssetFileDescriptor.Length Property

Definition

Returns the total number of bytes of this asset entry's data.

public virtual long Length { [Android.Runtime.Register("getLength", "()J", "GetGetLengthHandler")] get; }
[<get: Android.Runtime.Register("getLength", "()J", "GetGetLengthHandler")>]
member this.Length : int64

Property Value

Attributes

Remarks

Returns the total number of bytes of this asset entry's data. May be #UNKNOWN_LENGTH if the asset extends to the end of the file. If the AssetFileDescriptor was constructed with #UNKNOWN_LENGTH, this will use ParcelFileDescriptor#getStatSize() ParcelFileDescriptor.getStatSize() to find the total size of the file, returning that number if found or #UNKNOWN_LENGTH if it could not be determined.

Java documentation for android.content.res.AssetFileDescriptor.getLength().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also