BizHawk/ExternalProjects/iso-parser/ISONode.cs

35 lines
827 B
C#

namespace ISOParser
{
/// <summary>
/// Abstract class to represent a file/directory node
/// </summary>
public class ISONode
{
/// <summary>
/// The record this node was created from.
/// </summary>
public ISONodeRecord FirstRecord;
/// <summary>
/// The sector offset of the file/directory data
/// </summary>
public long Offset;
/// <summary>
/// The byte length of the file/directory data.
/// </summary>
public long Length;
/// <summary>
/// Constructor.
/// TODO: Make this constructor protected???
/// </summary>
/// <param name="record">The ISONodeRecord to construct from.</param>
public ISONode(ISONodeRecord record)
{
this.FirstRecord = record;
this.Offset = record.OffsetOfData;
this.Length = record.LengthOfData;
}
}
}