当前位置: 首页>>代码示例>>C#>>正文


C# Ice.readString方法代码示例

本文整理汇总了C#中Ice.readString方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.readString方法的具体用法?C# Ice.readString怎么用?C# Ice.readString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ice的用法示例。


在下文中一共展示了Ice.readString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IPEndpointI

 public IPEndpointI(ProtocolInstance instance, Ice.InputStream s)
 {
     instance_ = instance;
     host_ = s.readString();
     port_ = s.readInt();
     sourceAddr_ = null;
     connectionId_ = "";
     _hashInitialized = false;
 }
开发者ID:externl,项目名称:ice,代码行数:9,代码来源:IPEndpointI.cs

示例2: WSEndpoint

        internal WSEndpoint(ProtocolInstance instance, EndpointI del, Ice.InputStream s)
        {
            _instance = instance;
            _delegate = (IPEndpointI)del;

            _resource = s.readString();
        }
开发者ID:externl,项目名称:ice,代码行数:7,代码来源:WSEndpoint.cs

示例3: readImpl__

 protected virtual void readImpl__(Ice.InputStream inS__)
 {
     inS__.startSlice();
     id__prop = inS__.readString();
     inS__.readObject(new Patcher__(minie.irpc.cm_node_rpc.ice_staticId(), this, 0));
     inS__.readObject(new Patcher__(minie.irpc.cm_user_rpc.ice_staticId(), this, 1));
     host_flag__prop = inS__.readInt();
     inS__.readObject(new Patcher__(minie.irpc.sys_user_rpc.ice_staticId(), this, 2));
     creation_time__prop = inS__.readString();
     inS__.endSlice();
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:11,代码来源:minie_entity.cs

示例4: create

        public Reference create(Ice.Identity ident, Ice.InputStream s)
        {
            //
            // Don't read the identity here. Operations calling this
            // constructor read the identity, and pass it as a parameter.
            //

            if(ident.name.Length == 0 && ident.category.Length == 0)
            {
                return null;
            }

            //
            // For compatibility with the old FacetPath.
            //
            string[] facetPath = s.readStringSeq();
            string facet;
            if(facetPath.Length > 0)
            {
                if(facetPath.Length > 1)
                {
                    throw new Ice.ProxyUnmarshalException();
                }
                facet = facetPath[0];
            }
            else
            {
                facet = "";
            }

            int mode = (int)s.readByte();
            if(mode < 0 || mode > (int)Reference.Mode.ModeLast)
            {
                throw new Ice.ProxyUnmarshalException();
            }

            bool secure = s.readBool();

            Ice.ProtocolVersion protocol;
            Ice.EncodingVersion encoding;
            if(!s.getEncoding().Equals(Ice.Util.Encoding_1_0))
            {
                protocol = new Ice.ProtocolVersion();
                protocol.read__(s);
                encoding = new Ice.EncodingVersion();
                encoding.read__(s);
            }
            else
            {
                protocol = Ice.Util.Protocol_1_0;
                encoding = Ice.Util.Encoding_1_0;
            }

            EndpointI[] endpoints = null;
            string adapterId = "";

            int sz = s.readSize();
            if(sz > 0)
            {
                endpoints = new EndpointI[sz];
                for(int i = 0; i < sz; i++)
                {
                    endpoints[i] = instance_.endpointFactoryManager().read(s);
                }
            }
            else
            {
                adapterId = s.readString();
            }

            return create(ident, facet, (Reference.Mode)mode, secure, protocol, encoding, endpoints, adapterId, null);
        }
开发者ID:zhangwei5095,项目名称:ice,代码行数:72,代码来源:ReferenceFactory.cs

示例5: readImpl__

 protected virtual void readImpl__(Ice.InputStream inS__)
 {
     inS__.startSlice();
     user_id = inS__.readString();
     token = inS__.readString();
     ext = inS__.readString();
     inS__.endSlice();
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:8,代码来源:minie_service_base.cs


注:本文中的Ice.readString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。