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


C# BigEndianReader.ReadByte方法代码示例

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


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

示例1: GetMessageLenght

 private static int GetMessageLenght(BigEndianReader data, ushort read)
 {
     switch (read & 3)
     {
         case 1:
             return data.ReadByte();
         case 2:
             return data.ReadUShort();
         case 3:
             return (data.ReadByte() << 16) + (data.ReadByte() << 8) + data.ReadByte();
         default:
             return 0;
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:14,代码来源:MessageBuilder.cs

示例2: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Position = reader.ReadByte();
     SpellId = reader.ReadInt();
     SpellLevel = reader.ReadSByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:SpellItem.cs

示例3: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     Success = BooleanByteWrapper.GetFlag(flag1, 0);
     AutomaticAction = BooleanByteWrapper.GetFlag(flag1, 1);
     ActionId = reader.ReadInt();
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:StartupActionFinishedMessage.cs

示例4: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     Success = BooleanByteWrapper.GetFlag(flag1, 0);
     Session = BooleanByteWrapper.GetFlag(flag1, 1);
     Name = reader.ReadUTF();
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:IgnoredDeleteResultMessage.cs

示例5: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     DeathState = reader.ReadSByte();
     DeathCount = reader.ReadShort();
     DeathMaxLevel = reader.ReadByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:CharacterHardcoreInformations.cs

示例6: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     IsEntered = BooleanByteWrapper.GetFlag(flag1, 0);
     IsInRoom = BooleanByteWrapper.GetFlag(flag1, 1);
     AreaId = reader.ReadShort();
     AreaAlignment = reader.ReadSByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:8,代码来源:VillageConquestPrismInformation.cs

示例7: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Level = reader.ReadByte();
     GuildInfo = new BasicGuildInformations();
     GuildInfo.Deserialize(reader);
     ExperienceForGuild = reader.ReadInt();
 }
开发者ID:Riul,项目名称:emulator,代码行数:8,代码来源:FightResultTaxCollectorListEntry.cs

示例8: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     IsSecret = BooleanByteWrapper.GetFlag(flag1, 0);
     IsRestrictedToPartyOnly = BooleanByteWrapper.GetFlag(flag1, 1);
     IsClosed = BooleanByteWrapper.GetFlag(flag1, 2);
     IsAskingForHelp = BooleanByteWrapper.GetFlag(flag1, 3);
 }
开发者ID:Riul,项目名称:emulator,代码行数:8,代码来源:FightOptionsInformations.cs

示例9: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     Salt = reader.ReadUTF();
     var limit = reader.ReadUShort();
     Key = new byte[limit];
     for (int i = 0; i < limit; i++)
     {
         Key[i] = reader.ReadByte();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:10,代码来源:HelloConnectMessage.cs

示例10: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     PresetId = reader.ReadSByte();
     Code = reader.ReadSByte();
     var limit = reader.ReadUShort();
     UnlinkedPosition = new byte[limit];
     for (int i = 0; i < limit; i++)
     {
         UnlinkedPosition[i] = reader.ReadByte();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:11,代码来源:InventoryPresetUseResultMessage.cs

示例11: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Level = reader.ReadByte();
     var limit = reader.ReadUShort();
     Additional = new FightResultAdditionalData[limit];
     for (int i = 0; i < limit; i++)
     {
         Additional[i] = Types.ProtocolTypeManager.GetInstance<FightResultAdditionalData>(reader.ReadShort());
         Additional[i].Deserialize(reader);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:12,代码来源:FightResultPlayerListEntry.cs

示例12: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Time = reader.ReadByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:5,代码来源:SkillActionDescriptionTimed.cs

示例13: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     byte flag1 = reader.ReadByte();
     HasFriend = BooleanByteWrapper.GetFlag(flag1, 0);
     HasGuildMember = BooleanByteWrapper.GetFlag(flag1, 1);
     HasGroupMember = BooleanByteWrapper.GetFlag(flag1, 2);
     HasMyTaxCollector = BooleanByteWrapper.GetFlag(flag1, 3);
     TeamMembersCount = reader.ReadSByte();
     MeanLevel = reader.ReadInt();
 }
开发者ID:Riul,项目名称:emulator,代码行数:11,代码来源:FightTeamLightInformations.cs

示例14: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Id = reader.ReadInt();
     LifePoints = reader.ReadInt();
     MaxLifePoints = reader.ReadInt();
     Prospecting = reader.ReadShort();
     RegenRate = reader.ReadByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:9,代码来源:PartyUpdateLightMessage.cs

示例15: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     RegenRate = reader.ReadByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:4,代码来源:LifePointsRegenBeginMessage.cs


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