Files
App-Installer-For-Windows-8…/PriFormat/UnknownSection.cs
2026-01-27 22:47:49 +08:00

29 lines
607 B
C#

using System.IO;
namespace PriFormat
{
public class UnknownSection: Section
{
public byte [] SectionContent { get; private set; }
internal UnknownSection (string sectionIdentifier, PriFile priFile)
: base (sectionIdentifier, priFile)
{
}
protected override bool ParseSectionContent (BinaryReader binaryReader)
{
int contentLength = (int)(binaryReader.BaseStream.Length - binaryReader.BaseStream.Position);
SectionContent = binaryReader.ReadBytes (contentLength);
return true;
}
public override void Dispose ()
{
SectionContent = null;
base.Dispose ();
}
}
}