本文整理汇总了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();
}
示例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);
}
示例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;
}
示例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);
}
示例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());
}
示例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);
}
}
示例7: IRead
protected override void IRead(hsStream s, hsResMgr mgr)
{
fID = s.ReadUInt();
fSerial = s.ReadUShort();
}
示例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();
}
示例9: Read
public override void Read(hsStream s)
{
fTransID = s.ReadUInt();
}
示例10: Read
public override void Read(hsStream s, hsResMgr mgr)
{
fFlags = s.ReadUInt();
fClientGuid.Read(s, mgr);
fAvatarUoid = mgr.ReadUoid(s);
}
示例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);
}
示例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)));
}
示例13: Read
public override void Read(hsStream s)
{
fTransID = s.ReadUInt();
fHost = pnHelpers.ReadString(s, 24);
}
示例14: Read
public void Read(hsStream s)
{
fParent = s.ReadUInt();
fChild = s.ReadUInt();
fSaver = s.ReadUInt();
s.ReadByte(); // "Seen" -- might as well be garbage
}
示例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);
}