Developer Documentation

CustomEffect<T>.Deserialize

public static T Deserialize(byte[] data)
public static T Deserialize(IntPtr ptr)

Deserializes a structure from a byte array

Info

copy to Marshal.PtrToStructure

Parameters

NameTypeDescription
dataByte[]binary data to deserialize
ptrIntPtrpointer to deserialize as structure

Returns

TypeDescription
<T>structure

Variants

Deserialize(data)

public static T Deserialize(byte[] data)

Deserializes a structure from a byte array

Warning

copy to Marshal.PtrToStructure

Parameters

NameTypeDescription
dataByte[]binary data to deserialize

Returns

TypeDescription
<T>structure

Deserialize(ptr)

public static T Deserialize(IntPtr ptr)

Deserializes a structure from a pointer

Parameters

NameTypeDescription
ptrIntPtrpointer to deserialize as structure

Returns

TypeDescription
<T>structure