示例#1
0
        public void getUsedBytes_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getUsedBytes_args args = new getUsedBytes_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            getUsedBytes_result result = new getUsedBytes_result();

            result.Success = iface_.getUsedBytes();
            oprot.WriteMessageBegin(new TMessage("getUsedBytes", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
示例#2
0
        public long recv_getUsedBytes()
        {
            TMessage msg = iprot_.ReadMessageBegin();

            if (msg.Type == TMessageType.Exception)
            {
                TApplicationException x = TApplicationException.Read(iprot_);
                iprot_.ReadMessageEnd();
                throw x;
            }
            getUsedBytes_result result = new getUsedBytes_result();

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getUsedBytes failed: unknown result");
        }