public BinaryProtocol(TTransport trans) : this(trans, false, true) { }
public BinaryProtocol(TTransport trans, bool strictRead, bool strictWrite) : base(trans) { strictRead_ = strictRead; strictWrite_ = strictWrite; }
public Serializer GetProtocol(TTransport trans) { return new CompactProtocol(trans); }
public Serializer GetProtocol(TTransport trans) { return new BinaryProtocol(trans, strictRead_, strictWrite_); }
public Serializer GetProtocol(TTransport trans) { return new JSONProtocol(trans); }
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; }
///<summary> /// JSONProtocol Constructor ///</summary> public JSONProtocol(TTransport trans) : base(trans) { context = new JSONBaseContext(this); reader = new LookaheadReader(this); }
public virtual TTransport GetTransport(TTransport trans) { return trans; }
public TFramedTransport(TTransport transport) : this() { this.transport = transport; }
public override TTransport GetTransport(TTransport trans) { return new TFramedTransport(trans); }
protected Serializer(TTransport trans) { this.trans = trans; }