다음을 통해 공유


AssetFileDescriptor.DeclaredLength Property

Definition

Return the actual number of bytes that were declared when the AssetFileDescriptor was constructed.

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

Property Value

Attributes

Remarks

Return the actual number of bytes that were declared when the AssetFileDescriptor was constructed. Will be #UNKNOWN_LENGTH if the length was not declared, meaning data should be read to the end of the file.

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

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