コード例 #1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }
            BaseProtocolResponse that = ( BaseProtocolResponse )o;

            return(Objects.Equals(_version, that._version) && Objects.Equals(_protocolName, that._protocolName));
        }
コード例 #2
0
 internal virtual void EncodeProtocolResponse <U>(BaseProtocolResponse <U> protocolResponse, System.Action <ByteBuf, U> writer) where U : IComparable <U>
 {
     Out.writeInt(protocolResponse.StatusCode().codeValue());
     StringMarshal.marshal(Out, protocolResponse.ProtocolName());
     writer(Out, protocolResponse.Version());
 }