Class Serialization

com.yandex.runtime.bindings

public class Serialization

Deprecated.

Replaced by Marshalling class!
Note.
  deprecated 

Methods

static< T extends Serializable > T deserialize(ByteBuffer buffer, Class< T > cls)
static< T extends Serializable > List< T > deserializeArray(ByteBuffer buffer, Class< T > itemClass)
static< T extends Serializable > List< T > deserializeArrayFromBytes(byte[] bytes, Class< T > itemClass)
static< T extends Serializable > T deserializeFromBytes(byte[] bytes, Class< T > cls)
static< T extends Serializable > ByteBuffer serialize(T object)
static< T extends Serializable > ByteBuffer serializeArray(List< T > array)
static< T extends Serializable > byte[] serializeArrayToBytes(List< T > array)
static< T extends Serializable > byte[] serializeToBytes(T object)

Method Detail

deserialize

public static static< T extends Serializable > T deserialize (ByteBuffer buffer, Class< T > cls)

deserializeArray

public static static< T extends Serializable > List< T > deserializeArray (ByteBuffer buffer, Class< T > itemClass)

deserializeArrayFromBytes

public static static< T extends Serializable > List< T > deserializeArrayFromBytes (byte[] bytes, Class< T > itemClass)

deserializeFromBytes

public static static< T extends Serializable > T deserializeFromBytes (byte[] bytes, Class< T > cls)

serialize

public static static< T extends Serializable > ByteBuffer serialize (T object)

serializeArray

public static static< T extends Serializable > ByteBuffer serializeArray (List< T > array)

serializeArrayToBytes

public static static< T extends Serializable > byte[] serializeArrayToBytes (List< T > array)

serializeToBytes

public static static< T extends Serializable > byte[] serializeToBytes (T object)