本文整理汇总了C#中Plasma.hsStream.WriteUInt方法的典型用法代码示例。如果您正苦于以下问题:C# hsStream.WriteUInt方法的具体用法?C# hsStream.WriteUInt怎么用?C# hsStream.WriteUInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plasma.hsStream
的用法示例。
在下文中一共展示了hsStream.WriteUInt方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public override void Write(hsStream s)
{
s.WriteUInt(fTransID);
pnHelpers.WriteString(s, fAccount, 64);
s.WriteBytes(fHash);
s.WriteUInt(fSrvChg);
s.WriteUInt(fCliChg);
}
示例2: Write
public void Write(hsStream s)
{
s.WriteByte((byte)fType);
s.WriteUShort(kHeaderSize);
s.WriteUInt(fBuildID);
s.WriteUInt((uint)fBuildType);
s.WriteUInt(fBranchID);
pnHelpers.WriteUuid(s, fProductUuid);
}
示例3: Write
public static void Write(hsStream s, DateTime dt)
{
// Figure out the Seconds and Microseconds from the DateTime
TimeSpan ts = dt - Epoch;
uint seconds = (uint)ts.TotalSeconds;
uint micros = ((uint)(ts.TotalMilliseconds * 100.0d)) - seconds;
// Now write them to the stream
s.WriteUInt(seconds);
s.WriteUInt(micros);
}
示例4: Write
public override void Write(hsStream s, hsResMgr mgr)
{
base.Write(s, mgr);
s.WriteByte(fFlags);
s.WriteByte(fNumFrames);
s.WriteStdString(fVoiceData);
s.WriteByte((byte)fReceivers.Count);
foreach (uint r in fReceivers)
s.WriteUInt(r);
}
示例5: Write
public override void Write(hsStream s)
{
s.WriteUInt(fTransID);
s.WriteInt((int)fResult);
pnHelpers.WriteUuid(s, fAcctGuid);
s.WriteInt(fPermissions);
if (fAvatars == null)
s.WriteInt(0);
else {
s.WriteInt(fAvatars.Length);
foreach (pnVaultAvatarInfo a in fAvatars)
a.Write(s);
}
}
示例6: IWrite
protected override void IWrite(hsStream s, hsResMgr mgr)
{
s.WriteUInt(fEvent);
s.WriteUInt(fLinkID);
}
示例7: Write
public override void Write(hsStream s)
{
s.WriteUInt(fTransID);
s.WriteInt((int)fResult);
pnHelpers.WriteUuid(s, fAcctGuid);
s.WriteUInt(fFlags);
s.WriteUInt(fBillingType);
if (fDroidKey == null) fDroidKey = new uint[4];
for (int i = 0; i < fDroidKey.Length; i++)
s.WriteUInt(fDroidKey[i]);
}
示例8: Write
public override void Write(hsStream s)
{
s.WriteUInt(fTransID);
}
示例9: Write
public override void Write(hsStream s, hsResMgr mgr)
{
s.WriteUInt(fFlags);
fClientGuid.Write(s, mgr);
mgr.WriteUoid(s, fAvatarUoid);
}
示例10: Write
public void Write(hsStream s)
{
ContentsFlags contents = IGetContentFlags(s.Version);
s.WriteByte((byte)contents);
fLocation.Write(s);
if (s.Version.IsPlasma20)
if ((contents & ContentsFlags.kHasLoadMask) != 0)
fLoadMask.Write(s);
plManagedType.Write(s, fClassType);
if (s.Version.IsUruLive || s.Version.IsPlasma21)
s.WriteUInt(fObjectID.Value);
s.WriteSafeString(fObjectName);
if (s.Version.IsPlasma20)
if ((contents & ContentsFlags.kHasCloneIDs) != 0) {
s.WriteUInt(fCloneID);
s.WriteUInt(fClonePlayerID);
}
if (s.Version.IsPlasma21)
if ((contents & (ContentsFlags.kHasLoadMask | ContentsFlags.kHasLoadMask2)) != 0)
fLoadMask.Write(s);
}
示例11: Write
public override void Write(hsStream s, hsResMgr mgr)
{
base.Write(s, mgr);
mgr.WriteKey(s, fCloneKey);
mgr.WriteKey(s, fRequestorKey);
s.WriteUInt(fOriginatingPlayerID);
s.WriteUInt(fUserData);
s.WriteBool(fValidMsg);
s.WriteBool(fIsLoading);
mgr.WriteCreatable(s, fTriggerMsg);
}
示例12: Write
public override void Write(hsStream s)
{
s.WriteUInt(fTransID);
pnHelpers.WriteString(s, fHost, 24);
}
示例13: Write
public void Write(hsStream s)
{
s.WriteUInt(fParent);
s.WriteUInt(fChild);
s.WriteUInt(fSaver);
s.WriteByte(0);
}
示例14: Write
public override void Write(hsStream s, hsResMgr mgr)
{
s.WriteInt((int)fFlags);
if (HasVersion) {
s.WriteByte(fVerMajor);
s.WriteByte(fVerMinor);
}
if (HasTimeSent)
plUnifiedTime.Write(s, fTimeSent);
if (HasContext)
s.WriteUInt(fContext);
if (HasTransID)
s.WriteUInt(fTransID);
if (HasPlayerID)
s.WriteUInt(fPlayerID);
if (HasAccount)
s.WriteBytes(fAcctUUID.ToByteArray());
}