Code example for Parcel

Methods: setDataPosition

        assertEquals(0, mParcel.dataPosition());
    // Check parsing of the parcel is successful. 
    private void assertParse() throws Exception { 
    // Write the number of bytes from the start of the parcel to the 
    // current position at the beginning of the parcel (offset 0). 
    private void adjustSize() { 
    // Write the number of bytes from the offset to the current 
    // position at position pointed by offset. 
    private void adjustSize(int offset) {
        final int pos = mParcel.dataPosition();
Connect your IDE to all the code out there  Get Codota for Java