C# Class Emul8.Peripherals.Memory.MappedMemory

Inheritance: IBytePeripheral, IWordPeripheral, IDoubleWordPeripheral, IMapped, IDisposable, IKnownSize, ISpeciallySerializable, IMemory, IMultibyteWritePeripheral
Show file Open project: emul8/emul8 Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetSegment ( int segmentNo ) : IntPtr
IsTouched ( int segmentNo ) : bool
Load ( Antmicro.Migrant.PrimitiveReader reader ) : void
MappedMemory ( uint size, int segmentSize = null ) : System
ReadByte ( long offset ) : byte
ReadBytes ( long offset, int count ) : byte[]
ReadBytes ( long offset, int count, byte destination, int startIndex ) : void
ReadDoubleWord ( long offset ) : uint
ReadWord ( long offset ) : ushort
Reset ( ) : void
Save ( Antmicro.Migrant.PrimitiveWriter writer ) : void
TouchAllSegments ( ) : void
TouchSegment ( int segmentNo ) : void
WriteByte ( long offset, byte value ) : void
WriteBytes ( long offset, byte value ) : void
WriteBytes ( long offset, byte value, int count ) : void
WriteBytes ( long offset, byte array, int startingIndex, int count ) : void
WriteDoubleWord ( long offset, uint value ) : void
WriteString ( long offset, string value ) : void
WriteWord ( long offset, ushort value ) : void
ZeroAll ( ) : void

Private Methods

Method Description
AllocateSegment ( ) : IntPtr
CheckAlignment ( IntPtr segment ) : void
CheckSegmentNo ( int segmentNo ) : void
Free ( ) : void
GetLocalOffset ( uint offset ) : int
GetSegmentNo ( uint offset ) : int
Init ( ) : void
MappedMemory ( ) : System
MemSet ( IntPtr pointer, byte value, int length ) : IntPtr
MemSet ( IntPtr pointer, byte value, int length ) : void
PrepareSegments ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetSegment() public method

public GetSegment ( int segmentNo ) : IntPtr
segmentNo int
return System.IntPtr

IsTouched() public method

public IsTouched ( int segmentNo ) : bool
segmentNo int
return bool

Load() public method

public Load ( Antmicro.Migrant.PrimitiveReader reader ) : void
reader Antmicro.Migrant.PrimitiveReader
return void

MappedMemory() public method

public MappedMemory ( uint size, int segmentSize = null ) : System
size uint
segmentSize int
return System

ReadByte() public method

public ReadByte ( long offset ) : byte
offset long
return byte

ReadBytes() public method

public ReadBytes ( long offset, int count ) : byte[]
offset long
count int
return byte[]

ReadBytes() public method

public ReadBytes ( long offset, int count, byte destination, int startIndex ) : void
offset long
count int
destination byte
startIndex int
return void

ReadDoubleWord() public method

public ReadDoubleWord ( long offset ) : uint
offset long
return uint

ReadWord() public method

public ReadWord ( long offset ) : ushort
offset long
return ushort

Reset() public method

public Reset ( ) : void
return void

Save() public method

public Save ( Antmicro.Migrant.PrimitiveWriter writer ) : void
writer Antmicro.Migrant.PrimitiveWriter
return void

TouchAllSegments() public method

public TouchAllSegments ( ) : void
return void

TouchSegment() public method

public TouchSegment ( int segmentNo ) : void
segmentNo int
return void

WriteByte() public method

public WriteByte ( long offset, byte value ) : void
offset long
value byte
return void

WriteBytes() public method

public WriteBytes ( long offset, byte value ) : void
offset long
value byte
return void

WriteBytes() public method

public WriteBytes ( long offset, byte value, int count ) : void
offset long
value byte
count int
return void

WriteBytes() public method

public WriteBytes ( long offset, byte array, int startingIndex, int count ) : void
offset long
array byte
startingIndex int
count int
return void

WriteDoubleWord() public method

public WriteDoubleWord ( long offset, uint value ) : void
offset long
value uint
return void

WriteString() public method

public WriteString ( long offset, string value ) : void
offset long
value string
return void

WriteWord() public method

public WriteWord ( long offset, ushort value ) : void
offset long
value ushort
return void

ZeroAll() public method

public ZeroAll ( ) : void
return void