Exemplo n.º 1
0
 public BinaryProtocol(TTransport trans)
     : this(trans, false, true)
 {
 }
Exemplo n.º 2
0
 public BinaryProtocol(TTransport trans, bool strictRead, bool strictWrite)
     : base(trans)
 {
     strictRead_ = strictRead;
     strictWrite_ = strictWrite;
 }
Exemplo n.º 3
0
 public Serializer GetProtocol(TTransport trans)
 {
     return new CompactProtocol(trans);
 }
Exemplo n.º 4
0
 public Serializer GetProtocol(TTransport trans)
 {
     return new BinaryProtocol(trans, strictRead_, strictWrite_);
 }
Exemplo n.º 5
0
 public Serializer GetProtocol(TTransport trans)
 {
     return new JSONProtocol(trans);
 }
Exemplo n.º 6
0
 public CompactProtocol(TTransport trans)
     : base(trans)
 {
     ttypeToCompactType[(int)TType.Stop] = Types.STOP;
     ttypeToCompactType[(int)TType.Bool] = Types.BOOLEAN_TRUE;
     ttypeToCompactType[(int)TType.Byte] = Types.BYTE;
     ttypeToCompactType[(int)TType.I16] = Types.I16;
     ttypeToCompactType[(int)TType.I32] = Types.I32;
     ttypeToCompactType[(int)TType.I64] = Types.I64;
     ttypeToCompactType[(int)TType.Double] = Types.DOUBLE;
     ttypeToCompactType[(int)TType.String] = Types.BINARY;
     ttypeToCompactType[(int)TType.List] = Types.LIST;
     ttypeToCompactType[(int)TType.Set] = Types.SET;
     ttypeToCompactType[(int)TType.Map] = Types.MAP;
     ttypeToCompactType[(int)TType.Struct] = Types.STRUCT;
 }
Exemplo n.º 7
0
 ///<summary>
 /// JSONProtocol Constructor
 ///</summary>
 public JSONProtocol(TTransport trans)
     : base(trans)
 {
     context = new JSONBaseContext(this);
     reader = new LookaheadReader(this);
 }
Exemplo n.º 8
0
 public virtual TTransport GetTransport(TTransport trans)
 {
     return trans;
 }
Exemplo n.º 9
0
 public TFramedTransport(TTransport transport)
     : this()
 {
     this.transport = transport;
 }
Exemplo n.º 10
0
 public override TTransport GetTransport(TTransport trans)
 {
     return new TFramedTransport(trans);
 }
Exemplo n.º 11
0
 protected Serializer(TTransport trans)
 {
     this.trans = trans;
 }