示例#1
0
 public SprotoTypeBase(int max_field_count, byte[] buffer)
 {
     this.has_field   = new SprotoTypeFieldOP(max_field_count);
     this.serialize   = new SprotoTypeSerialize(max_field_count);
     this.deserialize = new SprotoTypeDeserialize(buffer);
     isEmpty          = false;
 }
 public SprotoTypeBase(int max_field_count)
 {
     this.has_field   = new SprotoTypeFieldOP(max_field_count);
     this.serialize   = new SprotoTypeSerialize(max_field_count);
     this.deserialize = new SprotoTypeDeserialize();
 }
示例#3
0
 public SprotoTypeBase(int max_field_count, byte[] buffer)
 {
     this.has_field   = new SprotoTypeFieldOP(max_field_count);
     this.deserialize = new SprotoTypeDeserialize(buffer);
     this.extract     = new SprotoTypeExtract();
 }
示例#4
0
 public void init(SprotoTypeReader reader)
 {
     this.clear();
     this.deserialize = new SprotoTypeDeserialize(reader);
     this.decode();
 }
示例#5
0
 public void init(byte[] buffer)
 {
     this.clear();
     this.deserialize = new SprotoTypeDeserialize(buffer);
     this.decode();
 }