mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-21 22:34:58 +00:00
Clean up namespaces in Builders
This commit is contained in:
@@ -346,7 +346,7 @@ namespace BinaryObjectScanner.Builders
|
||||
try
|
||||
{
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(Models.PortableExecutable.AssemblyManifest));
|
||||
return serializer.Deserialize(new MemoryStream(entry.Data)) as BinaryObjectScanner.Models.PortableExecutable.AssemblyManifest;
|
||||
return serializer.Deserialize(new MemoryStream(entry.Data)) as Models.PortableExecutable.AssemblyManifest;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace BinaryObjectScanner.Builders
|
||||
/// <param name="data">Byte array to parse</param>
|
||||
/// <param name="offset">Offset into the byte array</param>
|
||||
/// <returns>Filled XBox Package File on success, null on error</returns>
|
||||
public static BinaryObjectScanner.Models.XZP.File ParseFile(byte[] data, int offset)
|
||||
public static Models.XZP.File ParseFile(byte[] data, int offset)
|
||||
{
|
||||
// If the data is invalid
|
||||
if (data == null)
|
||||
@@ -40,7 +40,7 @@ namespace BinaryObjectScanner.Builders
|
||||
/// </summary>
|
||||
/// <param name="data">Stream to parse</param>
|
||||
/// <returns>Filled XBox Package File on success, null on error</returns>
|
||||
public static BinaryObjectScanner.Models.XZP.File ParseFile(Stream data)
|
||||
public static Models.XZP.File ParseFile(Stream data)
|
||||
{
|
||||
// If the data is invalid
|
||||
if (data == null || data.Length == 0 || !data.CanSeek || !data.CanRead)
|
||||
@@ -54,7 +54,7 @@ namespace BinaryObjectScanner.Builders
|
||||
long initialOffset = data.Position;
|
||||
|
||||
// Create a new XBox Package File to fill
|
||||
var file = new BinaryObjectScanner.Models.XZP.File();
|
||||
var file = new Models.XZP.File();
|
||||
|
||||
#region Header
|
||||
|
||||
|
||||
Reference in New Issue
Block a user