本文整理汇总了C#中MUd.UruStream.ReadUShort方法的典型用法代码示例。如果您正苦于以下问题:C# UruStream.ReadUShort方法的具体用法?C# UruStream.ReadUShort怎么用?C# UruStream.ReadUShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MUd.UruStream
的用法示例。
在下文中一共展示了UruStream.ReadUShort方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public void Read(UruStream s)
{
while (true) {
AuthFileEntry entry = new AuthFileEntry();
entry.fName = s.ReadUnicodeString();
if (entry.fName == String.Empty) break;
entry.fSize = (long)(s.ReadUShort() << 16 | s.ReadUShort() & 0xFFFF);
s.ReadUShort(); //NULL
fFiles.Add(entry);
}
}
示例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));
}
示例3: Read
public void Read(UruStream s)
{
while (true) {
FileManifestEntry me = new FileManifestEntry();
me.fFileName = s.ReadUnicodeString();
if (me.fFileName == String.Empty) break; //The end of the manifest is an empty string
me.fDownloadName = s.ReadUnicodeString();
me.fHash = s.ReadUnicodeString();
me.fCompressedHash = s.ReadUnicodeString();
me.fFileSize = (uint)(s.ReadUShort() << 16 | s.ReadUShort() & 0xFFFF);
s.ReadUShort(); //NULL
me.fCompressedSize = (uint)(s.ReadUShort() << 16 | s.ReadUShort() & 0xFFFF);
s.ReadUShort(); //NULL
me.fFlags = (uint)(s.ReadUShort() << 16 | s.ReadUShort() & 0xFFFF);
s.ReadUShort(); //NULL
fEntries.Add(me);
}
}