コード例 #1
0
 public CObject(int type, MemoryStream data, int datacode, CObjectConverter convertor)
 {
     this.type     = type;
     this.datacode = datacode;
     index         = datacode;
     data.Seek(0, SeekOrigin.Begin);
     this.data      = data.ToArray();
     this.convertor = convertor;
 }
コード例 #2
0
 public CObject(int type, byte[] data, int datacode, CObjectConverter convertor)
 {
     this.type      = type;
     this.datacode  = datacode;
     index          = datacode;
     this.data      = data;
     this.convertor = convertor;
     if (data.Length == 0)
     {
         data = null;
     }
 }
コード例 #3
0
 public void setConvertor(CObjectConverter convertor)
 {
     this.convertor = convertor;
 }