Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/X86/ELF/BinarySection.cs
2009-09-06 16:59:43 +00:00

52 lines
No EOL
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU.X86.ELF {
public class BinarySection : BaseSection {
public BinarySection() {
//
}
private uint mMemoryOffset;
private uint mMemorySize;
public override uint MemoryOffset {
get {
return mMemoryOffset;
}
}
public override uint MemorySize {
get {
return mMemorySize;
}
}
public void SetMemoryInfo(uint mOffset, uint mSize) {
mMemoryOffset = mOffset;
mMemorySize = mSize;
}
public byte[] Data {
get;
set;
}
public override uint DetermineSize(uint aStartAddress) {
return (uint)Data.Length;
}
public override void ReadFromStream(System.IO.Stream aInput) {
throw new NotImplementedException();
}
public override void WriteToStream(System.IO.Stream aOutput) {
aOutput.Write(Data, 0, Data.Length);
}
public override void DumpInfo(StringBuilder aOutput, string aPrefix) {
//
}
}
}