示例#1
0
 public ServerSessionDecoder(int maxViaLength, int maxContentTypeLength)
 {
     viaDecoder         = new ViaStringDecoder(maxViaLength);
     contentTypeDecoder = new ContentTypeStringDecoder(maxContentTypeLength);
     sizeDecoder        = new IntDecoder();
     Reset();
 }
示例#2
0
 public SingletonMessageDecoder()
 {
     sizeDecoder  = new IntDecoder();
     currentState = State.ChunkStart;
 }
示例#3
0
 public StringDecoder(int sizeQuota)
 {
     this.sizeQuota = sizeQuota;
     sizeDecoder    = new IntDecoder();
     Reset();
 }