标签:mem sum turn att memory 字节 param ati formatter
/// <summary>
/// 字节数组转对象
/// </summary>
/// <param name="buff"></param>
/// <returns></returns>
public static object Bytes2Object(byte[] buff)
{
object obj;
using (MemoryStream ms = new MemoryStream(buff))
{
IFormatter iFormatter = new BinaryFormatter();
obj = iFormatter.Deserialize(ms);
}
return obj;
}
标签:mem sum turn att memory 字节 param ati formatter
原文地址:https://www.cnblogs.com/apimeng/p/12374058.html