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
Name | Type | Description |
---|---|---|
data | Byte[] | binary data to deserialize |
ptr | IntPtr | pointer to deserialize as structure |
Returns
Type | Description |
---|---|
<T> | structure |
Variants
Deserialize(data)
public static T Deserialize(byte[] data)
Deserializes a structure from a byte array
Warning
copy to Marshal.PtrToStructure
Parameters
Name | Type | Description |
---|---|---|
data | Byte[] | binary data to deserialize |
Returns
Type | Description |
---|---|
<T> | structure |
Deserialize(ptr)
public static T Deserialize(IntPtr ptr)
Deserializes a structure from a pointer
Parameters
Name | Type | Description |
---|---|---|
ptr | IntPtr | pointer to deserialize as structure |
Returns
Type | Description |
---|---|
<T> | structure |