Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Parcel;

public class Main {

    public static byte[] marshall(Object value) {
        if (value == null) {
            return null;
        }

        Parcel parcel = Parcel.obtain();
        try {
            parcel.writeValue(value);
            return parcel.marshall();
        } finally {
            parcel.recycle();
        }
    }
}