C# Class Mosa.Kernel.x86.Memory

Static class of helpful memory functions
Exibir arquivo Open project: tgiphil/MOSA-Project

Public Methods

Method Description
Clear ( uint destination, uint length ) : void

Clears the specified memory area.

Copy ( uint source, uint destination, uint length ) : void

Copies memory from the source to the destination.

Set ( uint destination, byte value, uint length ) : void

Sets the specified memory area to the specified byte value.

Private Methods

Method Description
Memcpy ( uint destination, uint source, uint count ) : void

Method Details

Clear() public static method

Clears the specified memory area.
public static Clear ( uint destination, uint length ) : void
destination uint The destination address.
length uint The length of bytes to clear.
return void

Copy() public static method

Copies memory from the source to the destination.
public static Copy ( uint source, uint destination, uint length ) : void
source uint The source address.
destination uint The destination address.
length uint The length of bytes to copy.
return void

Set() public static method

Sets the specified memory area to the specified byte value.
public static Set ( uint destination, byte value, uint length ) : void
destination uint The destination address.
value byte The byte value.
length uint The length of bytes to set.
return void