Implemented Ar Reader/Writer and UnitTests
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
|
||||
//[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("UnitTests")]
|
||||
|
||||
namespace AMWD.Common.Packing.Ar
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace AMWD.Common.Packing.Ar
|
||||
byte[] magic = new byte[2];
|
||||
inStream.Read(magic, 0, magic.Length);
|
||||
|
||||
if (magic[0] != 0x60 || magic[1] != 0x0A)
|
||||
if (magic[0] != 0x60 || magic[1] != 0x0A) // `\n
|
||||
throw new FormatException("Invalid file magic");
|
||||
|
||||
return new ArFileInfoExtended
|
||||
|
||||
Reference in New Issue
Block a user