public class ParcelPacker
extends java.lang.Object
ParcelUnpacker
it allows the writing and reading
of objects that might have grown in size between IPC versions while maintaining a correct
position in the parcel stream.Constructor and Description |
---|
ParcelPacker(Parcel p)
Start a new pack in the parcel.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Mark the end of this pack in the parcel stream.
|
public ParcelPacker(Parcel p)
ParcelUnpacker
class. It is safe to embed packs within each other, but the corresponding finish()
must be made in reverse order of the constructor calls.p
- The parcel to start the pack in.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.