C# Class NewSF64Toolkit.DataStructures.DataObjects.DynamicMemoryMapping

This class will be used to allow parts of dma data to be pulled out of the whole and converted to an object class to represent it, but still keep track of the remainder of the unknown data. This will hold sections of data that can be pulled out or added to.
Inheritance: IGameDataStructure
Show file Open project: mib-f8sm9c/NewSF64Toolkit Class Usage Examples

Public Properties

Property Type Description
MemoryMaps byte[]>.Dictionary

Public Methods

Method Description
AddMemory ( int offset, byte data ) : bool
ClearMaps ( ) : void
ContainsByte ( int offset ) : bool
ContainsBytes ( int offset, int size ) : bool
DynamicMemoryMapping ( ) : System
GetAsBytes ( ) : byte[]
LoadFromBytes ( byte bytes ) : bool
PeekMemory ( int offset, int size, byte &data ) : bool
TakeMemory ( int offset, int size, byte &data ) : bool

Private Methods

Method Description
GetContainingMap ( int offset ) : byte[]>.KeyValuePair
GetNextFreeByte ( int mapIndex ) : int
IsEmptyRegion ( int offset, int size ) : bool
IsValidMap ( byte[]>.KeyValuePair map ) : bool

Method Details

AddMemory() public method

public AddMemory ( int offset, byte data ) : bool
offset int
data byte
return bool

ClearMaps() public method

public ClearMaps ( ) : void
return void

ContainsByte() public method

public ContainsByte ( int offset ) : bool
offset int
return bool

ContainsBytes() public method

public ContainsBytes ( int offset, int size ) : bool
offset int
size int
return bool

DynamicMemoryMapping() public method

public DynamicMemoryMapping ( ) : System
return System

GetAsBytes() public method

public GetAsBytes ( ) : byte[]
return byte[]

LoadFromBytes() public method

public LoadFromBytes ( byte bytes ) : bool
bytes byte
return bool

PeekMemory() public method

public PeekMemory ( int offset, int size, byte &data ) : bool
offset int
size int
data byte
return bool

TakeMemory() public method

public TakeMemory ( int offset, int size, byte &data ) : bool
offset int
size int
data byte
return bool

Property Details

MemoryMaps public property

public Dictionary MemoryMaps
return byte[]>.Dictionary