Code example for Parcel

Methods: setDataPosition

0
        assertEquals(0, mParcel.dataPosition());
    } 
 
    // Check parsing of the parcel is successful. 
    private void assertParse() throws Exception { 
        mParcel.setDataPosition(0);
        assertTrue(mMetadata.parse(mParcel));
    } 
 
    // 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() { 
        adjustSize(0); 
    } 
 
    // 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