Section Class

Definition

Line 640 of cmsxo/BinaryFile.cm

Inheritance

Constructors & Destructor

public nothrow Section()
public nothrow Section(BinaryFile* file_, const String<char>& name_)

Member Functions

public virtual void AddSymbol(Symbol* symbol)
public virtual void AddSymbolsToAddressMap()
public nothrow ulong Address() const
public void Align(ulong alignment)
public nothrow ulong BaseAddress() const
public nothrow ulong DataLength() const
public virtual void Dump(StreamWriter& writer)
public void EmitByte(byte b)
public void EmitByte(ulong address, byte b)
public void EmitLongOffset(uint offset)
public nothrow void EmitLongOffset(ulong address, uint longOffset)
public nothrow void EmitShortOffset(ulong address, ushort shortOffset)
public void EmitShortOffset(ushort offset)
public void EmitString(const String<char>& s)
public void EmitUInt(uint x)
public void EmitUInt(ulong address, uint x)
public void EmitULong(ulong x)
public nothrow void EmitULong(ulong address, ulong x)
public virtual void Finalize()
public nothrow int GetByte()
public String<char> GetString()
public uint GetUInt()
public ulong GetULong()
public void Read(BinaryReader& reader)
public virtual void ReadExtended(BinaryReader& reader)
public nothrow void SetBaseAddress(ulong baseAddress_)
public void Write(BinaryWriter& writer)
public virtual void WriteExtended(BinaryWriter& writer)

Member Variables

public ulong baseAddress
public ulong copyStartPos
public Section* copyTargetSection
public List<byte> data
public ulong dataLength
public BinaryFile* file
public ulong fileOffset
public ulong length
public String<char> name
public long pos
public ulong removeOffset

Constructor& Destructor Details

Section Constructor

public nothrow Section()

Definition
Line 642 of cmsxo/BinaryFile.cm


Section Constructor

public nothrow Section(BinaryFile* file_, const String<char>& name_)

Definition
Line 645 of cmsxo/BinaryFile.cm


Member Function Details

AddSymbol Member Function

public virtual void AddSymbol(Symbol* symbol)

Definition
Line 652 of cmsxo/BinaryFile.cm


AddSymbolsToAddressMap Member Function

public virtual void AddSymbolsToAddressMap()

Definition
Line 655 of cmsxo/BinaryFile.cm


Address Member Function

public nothrow ulong Address()

Definition
Line 658 of cmsxo/BinaryFile.cm


Align Member Function

public void Align(ulong alignment)

Definition
Line 898 of cmsxo/BinaryFile.cm


BaseAddress Member Function

public nothrow ulong BaseAddress()

Definition
Line 662 of cmsxo/BinaryFile.cm


DataLength Member Function

public nothrow ulong DataLength()

Definition
Line 670 of cmsxo/BinaryFile.cm


Dump Member Function

public virtual void Dump(StreamWriter& writer)

Definition
Line 707 of cmsxo/BinaryFile.cm


EmitByte Member Function

public void EmitByte(byte b)

Definition
Line 727 of cmsxo/BinaryFile.cm


EmitByte Member Function

public void EmitByte(ulong address, byte b)

Definition
Line 743 of cmsxo/BinaryFile.cm


EmitLongOffset Member Function

public void EmitLongOffset(uint offset)

Definition
Line 804 of cmsxo/BinaryFile.cm


EmitLongOffset Member Function

public nothrow void EmitLongOffset(ulong address, uint longOffset)

Definition
Line 750 of cmsxo/BinaryFile.cm


EmitShortOffset Member Function

public nothrow void EmitShortOffset(ulong address, ushort shortOffset)

Definition
Line 757 of cmsxo/BinaryFile.cm


EmitShortOffset Member Function

public void EmitShortOffset(ushort offset)

Definition
Line 794 of cmsxo/BinaryFile.cm


EmitString Member Function

public void EmitString(const String<char>& s)

Definition
Line 786 of cmsxo/BinaryFile.cm


EmitUInt Member Function

public void EmitUInt(uint x)

Definition
Line 831 of cmsxo/BinaryFile.cm


EmitUInt Member Function

public void EmitUInt(ulong address, uint x)

Definition
Line 847 of cmsxo/BinaryFile.cm


EmitULong Member Function

public void EmitULong(ulong x)

Definition
Line 870 of cmsxo/BinaryFile.cm


EmitULong Member Function

public nothrow void EmitULong(ulong address, ulong x)

Definition
Line 764 of cmsxo/BinaryFile.cm


Finalize Member Function

public virtual void Finalize()

Definition
Line 649 of cmsxo/BinaryFile.cm


GetByte Member Function

public nothrow int GetByte()

Definition
Line 716 of cmsxo/BinaryFile.cm


GetString Member Function

public String<char> GetString()

Definition
Line 771 of cmsxo/BinaryFile.cm


GetUInt Member Function

public uint GetUInt()

Definition
Line 816 of cmsxo/BinaryFile.cm


GetULong Member Function

public ulong GetULong()

Definition
Line 854 of cmsxo/BinaryFile.cm


Read Member Function

public void Read(BinaryReader& reader)

Definition
Line 689 of cmsxo/BinaryFile.cm


ReadExtended Member Function

public virtual void ReadExtended(BinaryReader& reader)

Definition
Line 704 of cmsxo/BinaryFile.cm


SetBaseAddress Member Function

public nothrow void SetBaseAddress(ulong baseAddress_)

Definition
Line 666 of cmsxo/BinaryFile.cm


Write Member Function

public void Write(BinaryWriter& writer)

Definition
Line 674 of cmsxo/BinaryFile.cm


WriteExtended Member Function

public virtual void WriteExtended(BinaryWriter& writer)

Definition
Line 686 of cmsxo/BinaryFile.cm