Skip to content

HeaderBlock Class ​

Definition ​

A header block in a TAP file describing the following data block.

c#
public sealed class HeaderBlock : TapBlock<HeaderHeader>

View source

Properties ​

NameDescription
DataBlockLengthGets the length of the associated data block in bytes.
FilenameGets the filename stored in the header.
HeaderTypeGets the type of the header.
LocationGets the memory location to load the data to.
Parameter1Gets the first parameter whose meaning depends on HeaderType.
Parameter2Gets the second parameter whose meaning depends on HeaderType.

Methods ​

NameDescription
CreateCode(String, UInt16, UInt16)Creates a new HeaderBlock for a code block.
CreateProgram(String, UInt16, UInt16?, UInt16?)Creates a new HeaderBlock for a BASIC program block.
ToString()Returns a string that represents the current object.
TryGetStandardFileHeader(StandardFileHeader)Extracts the data from this block as a StandardFileHeader.