C# Class SharpOS.Kernel.MemoryBlock

Mostra file Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method Description
Allocate ( uint count ) : void
Fill ( uint pattern ) : void
GetByte ( uint offset ) : byte
GetChar ( uint offset ) : char
GetInt ( uint offset ) : int
GetUInt ( uint offset ) : uint
GetUShort ( uint offset ) : ushort
MemoryBlock ( uint length ) : System
Offset ( uint offset ) : MemoryBlock
Release ( ) : void
SetByte ( uint offset, byte value ) : void
SetChar ( uint offset, char value ) : void
SetChars ( uint offset, char value ) : void
SetInt ( uint offset, int value ) : void
SetString ( uint offset, string value ) : void
SetUInt ( uint offset, uint value ) : void
SetUShort ( uint offset, ushort value ) : void
this ( int index ) : byte

Private Methods

Method Description
CopyFrom ( MemoryBlock source, uint count ) : void
CopyTo ( MemoryBlock destination, uint count ) : void
Fill ( uint pattern, uint index, uint count ) : void
MemoryBlock ( uint address, uint length ) : System
Move ( uint source, uint dest, uint count ) : void

Method Details

Allocate() public method

public Allocate ( uint count ) : void
count uint
return void

Fill() public method

public Fill ( uint pattern ) : void
pattern uint
return void

GetByte() public method

public GetByte ( uint offset ) : byte
offset uint
return byte

GetChar() public method

public GetChar ( uint offset ) : char
offset uint
return char

GetInt() public method

public GetInt ( uint offset ) : int
offset uint
return int

GetUInt() public method

public GetUInt ( uint offset ) : uint
offset uint
return uint

GetUShort() public method

public GetUShort ( uint offset ) : ushort
offset uint
return ushort

MemoryBlock() public method

public MemoryBlock ( uint length ) : System
length uint
return System

Offset() public method

public Offset ( uint offset ) : MemoryBlock
offset uint
return MemoryBlock

Release() public method

public Release ( ) : void
return void

SetByte() public method

public SetByte ( uint offset, byte value ) : void
offset uint
value byte
return void

SetChar() public method

public SetChar ( uint offset, char value ) : void
offset uint
value char
return void

SetChars() public method

public SetChars ( uint offset, char value ) : void
offset uint
value char
return void

SetInt() public method

public SetInt ( uint offset, int value ) : void
offset uint
value int
return void

SetString() public method

public SetString ( uint offset, string value ) : void
offset uint
value string
return void

SetUInt() public method

public SetUInt ( uint offset, uint value ) : void
offset uint
value uint
return void

SetUShort() public method

public SetUShort ( uint offset, ushort value ) : void
offset uint
value ushort
return void

this() public method

public this ( int index ) : byte
index int
return byte