Share via


Parcel.InvokeHasFileDescriptors(Int32, Int32) Method

Definition

Report whether the parcel contains any marshalled file descriptors in the range defined by offset and length.

[Android.Runtime.Register("hasFileDescriptors", "(II)Z", "", ApiSince=33)]
public bool InvokeHasFileDescriptors(int offset, int length);
[<Android.Runtime.Register("hasFileDescriptors", "(II)Z", "", ApiSince=33)>]
member this.InvokeHasFileDescriptors : int * int -> bool

Parameters

offset
Int32

The offset from which the range starts. Should be between 0 and #dataSize().

length
Int32

The length of the range. Should be between 0 and #dataSize() - offset.

Returns

whether there are file descriptors or not.

Attributes

Remarks

Report whether the parcel contains any marshalled file descriptors in the range defined by offset and length.

WARNING: Parcelable definitions change over time. Unless you define a Parcelable yourself OR the Parcelable explicitly guarantees that it would never include such objects, you should not expect the return value to stay the same, and your code should continue to work even if the return value changes.

Java documentation for android.os.Parcel.hasFileDescriptors(int, int).

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