Esempio n. 1
0
 /// <summary>
 /// 初始化序列化对象,设置序列化时字节数组的最大长度,如果超出该长度
 /// 则对字节数组进行压缩,默认overSIze=0x3e8
 /// </summary>
 /// <param name="overSize"></param>
 public Serializer(int overSize)
 {
     this.bf         = new BinaryFormatter();
     this.compressor = new Compressor(overSize);
 }
Esempio n. 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public Serializer()
 {
     this.bf         = new BinaryFormatter();
     this.compressor = new Compressor();
 }