Parcel.Marshall Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Marshall() |
Returns the raw bytes of the parcel. |
| Marshall(ByteBuffer) |
Writes the raw bytes of the parcel to a buffer. |
Marshall()
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
The requested array.
- Attributes
Remarks
Returns the raw bytes of the parcel.
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
Marshall(ByteBuffer)
Writes the raw bytes of the parcel to a buffer.
[Android.Runtime.Register("marshall", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=36)]
public void Marshall(Java.Nio.ByteBuffer buffer);
[<Android.Runtime.Register("marshall", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=36)>]
member this.Marshall : Java.Nio.ByteBuffer -> unit
Parameters
- buffer
- ByteBuffer
The ByteBuffer to write the data to.
- Attributes
Remarks
Writes the raw bytes of the parcel to a buffer.
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(java.nio.ByteBuffer).
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.