예제 #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;
 }
예제 #2
0
 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();
 }