Condividi tramite


Parcel.Marshall Method

Definition

Returns the raw bytes of the parcel.

[Android.Runtime.Register("marshall", "()[B", "")]
public byte[]? Marshall ();
[<Android.Runtime.Register("marshall", "()[B", "")>]
member this.Marshall : unit -> byte[]

Returns

Byte[]
Attributes

Remarks

Returns the raw bytes of the parcel.

<p class="note">The data you retrieve here <strong>must not</strong> be placed in any kind of persistent storage (on local disk, across a network, etc). For that, you should use standard serialization or another kind of general serialization mechanism. The Parcel marshalled representation is highly optimized for local IPC, and as such does not attempt to maintain compatibility with data created in different versions of the platform.

Java documentation for android.os.Parcel.marshall().

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