Header
Namespace: Casasoft.IF.GBlorbLib
Represents the header chunk of a GBlorb file.
public class Header : Chunk, IChunk
Inheritance Object → Chunk → Header
Implements IChunk
Attributes NullableContextAttribute, NullableAttribute
Fields
Type
Gets or sets the type of the header.
public string Type;
Properties
Name
Gets or sets the name of the chunk.
public string Name { get; set; }
Property Value
Length
Gets or sets the length of the chunk.
public int Length { get; set; }
Property Value
Address
Gets or sets the address of the chunk.
public int Address { get; set; }
Property Value
ResourceID
Gets or sets the resource ID of the chunk.
public int ResourceID { get; set; }
Property Value
Constructors
Header()
Initializes a new instance of the Header class with default values.
public Header()
Header(Byte[])
Initializes a new instance of the Header class with the specified data.
public Header(Byte[] data)
Parameters
data
Byte[]
The byte array containing the header data.
Header(List<IChunk>, ResourceIndex)
Initializes a new instance of the Header class using a list of chunks and a resource index.
public Header(List<IChunk> chunks, ResourceIndex resourceIndex)
Parameters
chunks
List<IChunk>
The list of chunks to include in the header.
resourceIndex
ResourceIndex
The resource index containing metadata about the resources.
Methods
Write(Byte[], Int32)
Writes the header data to the specified byte array at the given offset.
public void Write(Byte[] data, int offset)
Parameters
data
Byte[]
The byte array to write the header data to.
offset
Int32
The offset within the byte array where the header data should be written.