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; }
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; } }
public void setConvertor(CObjectConverter convertor) { this.convertor = convertor; }