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


C# UruStream.ReadBytes方法代码示例

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


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

示例1: Read

 public void Read(UruStream s)
 {
     fTransID = s.ReadUInt();
     fAgeMcpID = s.ReadUInt();
     fAcctUuid = new Guid(s.ReadBytes(16));
     fPlayerID = s.ReadUInt();
 }
开发者ID:Hoikas,项目名称:mudpit,代码行数:7,代码来源:GameMessages.cs

示例2: Read

 public void Read(UruStream s)
 {
     fType = (EConnType)s.ReadByte();
     fSockHeaderSize = s.ReadUShort();
     fBuildID = s.ReadUInt();
     fBuildType = (NetCliBuildType)s.ReadUInt();
     fBranchID = s.ReadUInt();
     fProductID = new Guid(s.ReadBytes(16));
 }
开发者ID:Hoikas,项目名称:mudpit,代码行数:9,代码来源:NetCliCore.cs

示例3: Read

 public void Read(UruStream s)
 {
     fTransID = s.ReadUInt();
     fNodeID = s.ReadUInt();
     fRevisionID = new Guid(s.ReadBytes(16));
     fNodeData = s.ReadBytes(s.ReadInt());
 }
开发者ID:Hoikas,项目名称:mudpit,代码行数:7,代码来源:VaultMessages.cs

示例4: Read

 public void Read(UruStream s)
 {
     fTransID = s.ReadUInt();
     fAgeName = s.ReadUnicodeStringV16(40);
     fAgeInstanceUuid = new Guid(s.ReadBytes(16));
 }
开发者ID:Hoikas,项目名称:mudpit,代码行数:6,代码来源:AuthMessages.cs

示例5: NetCliConnect

        protected virtual bool NetCliConnect(int g)
        {
            UruStream s = new UruStream(new NetworkStream(fSocket, false));

            //NetCliConnect
            ISetupKeys(g);
            s.BufferWriter();
            s.WriteByte((byte)NetCliConnectMsg.kNetCliConnect);
            s.WriteByte(66);
            s.WriteBytes(fDhData);
            s.FlushWriter();

            //Recv NetCliEncrypt
            if (s.ReadByte() != (byte)NetCliConnectMsg.kNetCliEncrypt) { fSocket.Close(); return false; }
            byte[] seed = s.ReadBytes((int)(s.ReadByte() - 2));
            ISetupEncryption(seed);

            s.Close();
            return true;
        }
开发者ID:Hoikas,项目名称:mudpit,代码行数:20,代码来源:Cli2Srv.cs

示例6: Read

        public void Read(UruStream s)
        {
            ulong bit = 1;
            Fields f = (Fields)s.ReadULong();
            while (bit != 0 && bit <= (ulong)f) {
                switch (f & (Fields)bit) {
                    case Fields.kBlob_1:
                        fBlob[0] = s.ReadBytes(s.ReadInt());
                        break;
                    case Fields.kBlob_2:
                        fBlob[1] = s.ReadBytes(s.ReadInt());
                        break;
                    case Fields.kCreateAgeName:
                        fCreateAgeName = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kCreateAgeUuid:
                        fCreateAgeUuid = new Guid(s.ReadBytes(16));
                        break;
                    case Fields.kCreateTime:
                        fCreateTime = ToDateTime(s.ReadUInt());
                        break;
                    case Fields.kCreatorIdx:
                        fCreatorIdx = s.ReadUInt();
                        break;
                    case Fields.kCreatorUuid:
                        fCreatorUuid = new Guid(s.ReadBytes(16));
                        break;
                    case Fields.kInt32_1:
                        fInt32[0] = s.ReadInt();
                        break;
                    case Fields.kInt32_2:
                        fInt32[1] = s.ReadInt();
                        break;
                    case Fields.kInt32_3:
                        fInt32[2] = s.ReadInt();
                        break;
                    case Fields.kInt32_4:
                        fInt32[3] = s.ReadInt();
                        break;
                    case Fields.kIString64_1:
                        fIString64[0] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kIString64_2:
                        fIString64[1] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kModifyTime:
                        fModifyTime = ToDateTime(s.ReadUInt());
                        break;
                    case Fields.kNodeIdx:
                        fIdx = s.ReadUInt();
                        break;
                    case Fields.kNodeType:
                        fNodeType = (ENodeType)s.ReadUInt();
                        break;
                    case Fields.kString64_1:
                        fString64[0] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kString64_2:
                        fString64[1] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kString64_3:
                        fString64[2] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kString64_4:
                        fString64[3] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kString64_5:
                        fString64[4] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kString64_6:
                        fString64[5] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kText_1:
                        fText[0] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kText_2:
                        fText[0] = s.ReadUnicodeStringV32();
                        break;
                    case Fields.kUInt32_1:
                        fUInt32[0] = s.ReadUInt();
                        break;
                    case Fields.kUInt32_2:
                        fUInt32[1] = s.ReadUInt();
                        break;
                    case Fields.kUInt32_3:
                        fUInt32[2] = s.ReadUInt();
                        break;
                    case Fields.kUInt32_4:
                        fUInt32[3] = s.ReadUInt();
                        break;
                    case Fields.kUuid_1:
                        fUuid[0] = new Guid(s.ReadBytes(16));
                        break;
                    case Fields.kUuid_2:
                        fUuid[1] = new Guid(s.ReadBytes(16));
                        break;
                    case Fields.kUuid_3:
                        fUuid[2] = new Guid(s.ReadBytes(16));
                        break;
                    case Fields.kUuid_4:
//.........这里部分代码省略.........
开发者ID:Hoikas,项目名称:mudpit,代码行数:101,代码来源:VaultNode.cs


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