本文整理匯總了C#中X360.IO.DJsIO.WriteUInt40方法的典型用法代碼示例。如果您正苦於以下問題:C# DJsIO.WriteUInt40方法的具體用法?C# DJsIO.WriteUInt40怎麽用?C# DJsIO.WriteUInt40使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類X360.IO.DJsIO
的用法示例。
在下文中一共展示了DJsIO.WriteUInt40方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Write
internal bool Write(ref DJsIO x)
{
if (!xLoaded)
return false;
try
{
if (x == null || !x.Accessed)
return false;
x.Position = 0x22C;
foreach (STFSLicense b in xLisc)
{
x.Write(b.ID);
x.Write(b.Var1);
x.Write(b.Flags);
}
x.Position = 0x344;
x.Write((uint)xThisType);
x.Write(MetaDataVersion);
x.Write(xContentSize);
x.Write(MediaID);
x.Write(Version_);
x.Write(Version_Base);
x.Write(TitleID);
x.Write(Platform);
x.Write(ExecutableType);
x.Write(DiscNumber);
x.Write(DiscInSet);
x.Write(SaveGameID);
x.WriteUInt40((ulong)SaveConsoleID);
x.Write(ProfileID);
x.Position = 0x39D;
x.Write(DataFileCount);
x.Write(DataFileSize);
x.Write(Reserved);
x.Write(SeriesID);
x.Write(SeasonID);
x.Write(SeasonNumber);
x.Write(EpidsodeNumber);
x.Position += 0x28;
x.Write(xDeviceID);
for (int i = 0; i < 9; i++)
x.Write(xTitles[i], StringForm.Unicode, 0x80, PadLocale.Right, PadType.Null);
for (int i = 0; i < 9; i++)
x.Write(xDescriptions[i], StringForm.Unicode, 0x80, PadLocale.Right, PadType.Null);
x.Write(xPublisher, StringForm.Unicode, 0x40, PadLocale.Right, PadType.Null);
x.Write(xTitle, StringForm.Unicode, 0x40, PadLocale.Right, PadType.Null);
x.Write(IDTransferByte);
x.Write(xPackageImage.Length);
x.Write(xContentImage.Length);
x.Write(xPackageImage);
x.Write(new byte[0x4000 - xPackageImage.Length]);
x.Write(xContentImage);
x.Write(new byte[(0x4000 - xContentImage.Length)]);
return true;
}
catch { return false; }
}