C# Class CSPspEmu.Hle.Loader.ElfLoader

Show file Open project: soywiz/cspspemu Class Usage Examples

Public Properties

Property Type Description
FileStream Stream
Header CSPspEmu.Hle.Formats.Elf.HeaderStruct
MemoryPartition MemoryPartition
MemoryStream Stream
NamesSectionHeader CSPspEmu.Hle.Formats.Elf.SectionHeader
ProgramHeaders CSPspEmu.Hle.Formats.Elf.ProgramHeader[]
SectionHeaders CSPspEmu.Hle.Formats.Elf.SectionHeader[]

Protected Properties

Property Type Description
BaseAddress uint
StringTable byte[]

Public Methods

Method Description
AllocateAndWrite ( Stream MemoryStream, MemoryPartition MemoryPartition, uint BaseAddress ) : void
GetStringFromStringTable ( uint Index ) : String
Load ( Stream FileStream, string Name ) : void
ProgramHeaderFileStream ( Elf ProgramHeader ) : Stream
SectionHeaderFileStream ( Elf SectionHeader ) : Stream
SectionHeaderMemoryStream ( Elf SectionHeader ) : Stream

Protected Methods

Method Description
AllocateMemory ( ) : void
SectionHeadersWithFlag ( Elf Flag ) : IEnumerable
WriteToMemory ( ) : void

Method Details

AllocateAndWrite() public method

public AllocateAndWrite ( Stream MemoryStream, MemoryPartition MemoryPartition, uint BaseAddress ) : void
MemoryStream Stream
MemoryPartition MemoryPartition
BaseAddress uint
return void

AllocateMemory() protected method

protected AllocateMemory ( ) : void
return void

GetStringFromStringTable() public method

public GetStringFromStringTable ( uint Index ) : String
Index uint
return String

Load() public method

public Load ( Stream FileStream, string Name ) : void
FileStream Stream
Name string
return void

ProgramHeaderFileStream() public method

public ProgramHeaderFileStream ( Elf ProgramHeader ) : Stream
ProgramHeader Elf
return Stream

SectionHeaderFileStream() public method

public SectionHeaderFileStream ( Elf SectionHeader ) : Stream
SectionHeader Elf
return Stream

SectionHeaderMemoryStream() public method

public SectionHeaderMemoryStream ( Elf SectionHeader ) : Stream
SectionHeader Elf
return Stream

SectionHeadersWithFlag() protected method

protected SectionHeadersWithFlag ( Elf Flag ) : IEnumerable
Flag Elf
return IEnumerable

WriteToMemory() protected method

protected WriteToMemory ( ) : void
return void

Property Details

BaseAddress protected property

protected uint BaseAddress
return uint

FileStream public property

public Stream FileStream
return Stream

Header public property

public Elf.HeaderStruct,CSPspEmu.Hle.Formats Header
return CSPspEmu.Hle.Formats.Elf.HeaderStruct

MemoryPartition public property

public MemoryPartition MemoryPartition
return MemoryPartition

MemoryStream public property

public Stream MemoryStream
return Stream

NamesSectionHeader public property

public Elf.SectionHeader,CSPspEmu.Hle.Formats NamesSectionHeader
return CSPspEmu.Hle.Formats.Elf.SectionHeader

ProgramHeaders public property

public Elf.ProgramHeader[],CSPspEmu.Hle.Formats ProgramHeaders
return CSPspEmu.Hle.Formats.Elf.ProgramHeader[]

SectionHeaders public property

public Elf.SectionHeader[],CSPspEmu.Hle.Formats SectionHeaders
return CSPspEmu.Hle.Formats.Elf.SectionHeader[]

StringTable protected property

protected byte[] StringTable
return byte[]