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


C# hsStream.ReadUInt方法代码示例

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


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

示例1: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fAccount = pnHelpers.ReadString(s, 64);
     fHash = s.ReadBytes(20);
     fSrvChg = s.ReadUInt();
     fCliChg = s.ReadUInt();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:8,代码来源:Cli2Vault.cs

示例2: Read

 public void Read(hsStream s)
 {
     fType = (ENetProtocol)s.ReadByte();
     if (s.ReadUShort() != kHeaderSize)
         throw new NotSupportedException();
     fBuildID = s.ReadUInt();
     fBuildType = (EBuildType)s.ReadUInt();
     fBranchID = s.ReadUInt();
     fProductUuid = pnHelpers.ReadUuid(s);
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:10,代码来源:Cli2Srv.cs

示例3: Read

        public static DateTime Read(hsStream s)
        {
            // Read in the data from the stream
            double secs = (double)s.ReadUInt();
            double micros = (double)s.ReadUInt();

            // Now construct a .NET DateTime
            DateTime dt = Epoch.AddSeconds(secs);
            dt.AddMilliseconds(micros / 100);
            return dt;
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:11,代码来源:UnifiedTime.cs

示例4: Read

 public void Read(hsStream s)
 {
     fType = (ENetProtocol)s.ReadByte();
     if (s.ReadUShort() != kHeaderSize)
         throw new NotSupportedException();
     fBuildID = s.ReadUInt();
     fProtocolVer = s.ReadUInt();
     if (fProtocolVer < 50)
         fProtocolVer = 50; // <= 50 are the old "Build Type" values...
     fBranchID = s.ReadUInt();
     fProductUuid = pnHelpers.ReadUuid(s);
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:12,代码来源:NsBase.cs

示例5: Read

        public override void Read(hsStream s, hsResMgr mgr)
        {
            base.Read(s, mgr);

            fFlags = s.ReadByte();
            fNumFrames = s.ReadByte();
            fVoiceData = s.ReadStdString();

            fReceivers.Capacity = (int)s.ReadByte();
            for (int i = 0; i < fReceivers.Capacity; i++)
                fReceivers.Insert(i, s.ReadUInt());
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:12,代码来源:NetMsgVoice.cs

示例6: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fResult = (ENetError)s.ReadInt();
     fAcctGuid = pnHelpers.ReadUuid(s);
     fPermissions = s.ReadInt();
     fAvatars = new pnVaultAvatarInfo[s.ReadInt()];
     for (int i = 0; i < fAvatars.Length; i++) {
         fAvatars[i] = new pnVaultAvatarInfo();
         fAvatars[i].Read(s);
     }
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:12,代码来源:Vault2Cli.cs

示例7: IRead

 protected override void IRead(hsStream s, hsResMgr mgr)
 {
     fID = s.ReadUInt();
     fSerial = s.ReadUShort();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:5,代码来源:NotifyMsg.cs

示例8: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fResult = (ENetError)s.ReadInt();
     fAcctGuid = pnHelpers.ReadUuid(s);
     fFlags = s.ReadUInt();
     fBillingType = s.ReadUInt();
     fDroidKey = new uint[4];
     for (int i = 0; i < fDroidKey.Length; i++)
         fDroidKey[i] = s.ReadUInt();
 }
开发者ID:Hoikas,项目名称:PlasmaDotNet,代码行数:11,代码来源:Auth2Cli.cs

示例9: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:4,代码来源:Cli2File.cs

示例10: Read

 public override void Read(hsStream s, hsResMgr mgr)
 {
     fFlags = s.ReadUInt();
     fClientGuid.Read(s, mgr);
     fAvatarUoid = mgr.ReadUoid(s);
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:6,代码来源:NetMsgMembersList.cs

示例11: Read

        public void Read(hsStream s)
        {
            ContentsFlags contents = (ContentsFlags)s.ReadByte();
            fLocation.Read(s);
            if ((contents & ContentsFlags.kHasLoadMask) != 0)
                if (!s.Version.IsPlasma21) fLoadMask.Read(s);
            fClassType = plManagedType.Read(s);
            if (s.Version.IsUruLive || s.Version.IsPlasma21)
                fObjectID = s.ReadUInt();
            fObjectName = s.ReadSafeString();
            if (s.Version.IsPlasma20) {
                if ((contents & ContentsFlags.kHasCloneIDs) != 0) {
                    fCloneID = s.ReadUInt();
                    fClonePlayerID = s.ReadUInt();
                }
            }

            if ((contents & (ContentsFlags.kHasLoadMask | ContentsFlags.kHasLoadMask2)) != 0)
                if (s.Version.IsPlasma21)
                    fLoadMask.Read(s);
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:21,代码来源:Key.cs

示例12: Read

        public override void Read(hsStream s, hsResMgr mgr)
        {
            base.Read(s, mgr);

            fCloneKey = mgr.ReadKey(s);
            fRequestorKey = mgr.ReadKey(s);
            fOriginatingPlayerID = s.ReadUInt();
            fUserData = s.ReadUInt();
            fValidMsg = s.ReadBool();
            fIsLoading = s.ReadBool();

            plCreatable tMsg = mgr.ReadCreatable(s);
            if (tMsg is plMessage)
                fTriggerMsg = (plMessage)tMsg;
            else if (tMsg != null)
                plDebugLog.GetLog("ResManager").Warn(
                    String.Format("plLoadCloneMsg: TriggerMsg should be a plMessage, but we got a '{0}'",
                    plFactory.ClassName(tMsg)));
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:19,代码来源:LoadCloneMsg.cs

示例13: Read

 public override void Read(hsStream s)
 {
     fTransID = s.ReadUInt();
     fHost = pnHelpers.ReadString(s, 24);
 }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:5,代码来源:Gate2Cli.cs

示例14: Read

 public void Read(hsStream s)
 {
     fParent = s.ReadUInt();
     fChild = s.ReadUInt();
     fSaver = s.ReadUInt();
     s.ReadByte(); // "Seen" -- might as well be garbage
 }
开发者ID:Hoikas,项目名称:PlasmaDotNet,代码行数:7,代码来源:VaultNode.cs

示例15: Read

        public override void Read(hsStream s, hsResMgr mgr)
        {
            base.Read(s, mgr);

            // Cache it.
            fVersion = mgr.Version;

            // Cyan stores these values, but we're just going to
            //     save the stream and have fun with it...
            fBuffer = new byte[s.ReadInt()];
            Compression type = (Compression)s.ReadByte();
            uint len = s.ReadUInt();

            if (type == Compression.kZlib) {
                short streamType = s.ReadShort();
                byte[] buf = s.ReadBytes((int)len - 2);

                // Create a zlib-compatible inflator
                // Note: incoming has no zlib header/footer
                //       System.IO.Compression sucks.
                Inflater zlib = new Inflater(true);
                zlib.Inflate(buf);

                Buffer.BlockCopy(BitConverter.GetBytes(streamType), 0, fBuffer, 0, 2);
                Buffer.BlockCopy(buf, 0, fBuffer, 2, buf.Length);
            } else
                fBuffer = s.ReadBytes((int)len);
        }
开发者ID:branan,项目名称:PlasmaDotNet,代码行数:28,代码来源:NetMsgStream.cs


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