Class MemoryOperations
MemoryOperations class. Used to do operations on the memory.
Inheritance
Inherited Members
Namespace: Cosmos.Core
Assembly: Cosmos.Core.dll
Syntax
public class MemoryOperations
Methods
| Improve this Doc View SourceCopy(Byte*, Byte*, Int32)
Copy source to destination. plugged.
Declaration
public static void Copy(byte *dest, byte *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Byte* | dest | Destination. |
System.Byte* | src | Source. |
System.Int32 | size | Size of data. |
Copy(Byte[], Byte[])
Copy source to destination.
Declaration
public static void Copy(byte[] dest, byte[] src)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | dest | Destination. |
System.Byte[] | src | Source. |
Copy(Byte[], Int32, Byte[], Int32, Int32)
Copy source to destination.
Declaration
public static void Copy(byte[] aDest, int aDestOffset, byte[] aSrc, int aSrcOffset, int aCount)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | aDest | |
System.Int32 | aDestOffset | |
System.Byte[] | aSrc | |
System.Int32 | aSrcOffset | |
System.Int32 | aCount |
Copy(Int16*, Int16*, Int32)
Copy source to destination.
Declaration
public static void Copy(short *dest, short *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int16* | dest | Destination. |
System.Int16* | src | Source. |
System.Int32 | size | Size of data. |
Copy(Int16[], Int16)
Copy source to destination.
Declaration
public static void Copy(short[] dest, short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | dest | Destination. |
System.Int16 | value | Value. |
Copy(Int32*, Int32*, Int32)
Copy source to destination.
Declaration
public static void Copy(int *dest, int *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32* | dest | Destination. |
System.Int32* | src | Source. |
System.Int32 | size | Size of data. |
Copy(Int32[], Int32, Int32[], Int32, Int32)
Copy source int array to destination int array.
Declaration
public static void Copy(int[] dest, int destOffset, int[] src, int srcOffset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | dest | Destination int array. |
System.Int32 | destOffset | Destination offset in int elements, not bytes. |
System.Int32[] | src | Source int array. |
System.Int32 | srcOffset | Source offset in int elements, not bytes. |
System.Int32 | count | Count of int elements to copy, not bytes. |
Copy(Int32[], Int32[])
Copy source to destination.
Declaration
public static void Copy(int[] dest, int[] src)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | dest | Destination. |
System.Int32[] | src | Source. |
Copy(SByte*, SByte*, Int32)
Copy source to destination.
Declaration
public static void Copy(sbyte *dest, sbyte *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.SByte* | dest | Destination. |
System.SByte* | src | Source. |
System.Int32 | size | Size of data. |
Copy(UInt16*, UInt16*, Int32)
Copy source to destination.
Declaration
public static void Copy(ushort *dest, ushort *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16* | dest | Destination. |
System.UInt16* | src | Source. |
System.Int32 | size | Size of data. |
Copy(UInt16[], UInt16[])
Copy source to destination.
Declaration
public static void Copy(ushort[] dest, ushort[] src)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | dest | Destination. |
System.UInt16[] | src | Source. |
Copy(UInt32*, UInt32*, Int32)
Copy source to destination.
Declaration
public static void Copy(uint *dest, uint *src, int size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32* | dest | Destination. |
System.UInt32* | src | Source. |
System.Int32 | size | Size of data. |
Copy(UInt32[], UInt32[])
Copy source to destination.
Declaration
public static void Copy(uint[] dest, uint[] src)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | dest | Destination. |
System.UInt32[] | src | Source. |
Fill(Byte*, Byte, Int32)
Fill data to destination.
Declaration
public static void Fill(byte *dest, byte value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Byte* | dest | Destination. |
System.Byte | value | Data value. |
System.Int32 | size | Data size. |
Fill(Byte*, Int32, Int32)
Fill memory block. Plugged.
Declaration
public static void Fill(byte *aDest, int aValue, int aSize)
Parameters
Type | Name | Description |
---|---|---|
System.Byte* | aDest | A destination. |
System.Int32 | aValue | A data value. |
System.Int32 | aSize | A data size. |
Fill(Byte[], Byte)
Fill data to destination.
Declaration
public static void Fill(byte[] dest, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | dest | Destination. |
System.Byte | value | Data value. |
Fill(Int16*, Int16, Int32)
Fill data to destination.
Declaration
public static void Fill(short *dest, short value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int16* | dest | Destination. |
System.Int16 | value | Data value. |
System.Int32 | size | Data size. |
Fill(Int16[], Int16)
Fill data to destination.
Declaration
public static void Fill(short[] dest, short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | dest | Destination. |
System.Int16 | value | Data value. |
Fill(Int32*, Int32, Int32)
Fill destination region with value.
Declaration
public static void Fill(int *dest, int value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32* | dest | Location |
System.Int32 | value | Value |
System.Int32 | size | Number of integers to write |
Fill(Int32[], Int32)
Fill data to destination.
Declaration
public static void Fill(int[] dest, int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | dest | Destination. |
System.Int32 | value | Data value. |
Fill(SByte*, SByte, Int32)
Fill data to destination.
Declaration
public static void Fill(sbyte *dest, sbyte value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.SByte* | dest | Destination. |
System.SByte | value | Data value. |
System.Int32 | size | Data size. |
Fill(SByte[], SByte)
Fill data to destination.
Declaration
public static void Fill(sbyte[] dest, sbyte value)
Parameters
Type | Name | Description |
---|---|---|
System.SByte[] | dest | Destination. |
System.SByte | value | Data value. |
Fill(SByte[], SByte[])
Fill source to destination.
Declaration
public static void Fill(sbyte[] dest, sbyte[] src)
Parameters
Type | Name | Description |
---|---|---|
System.SByte[] | dest | Destination. |
System.SByte[] | src | Source. |
Fill(UInt16*, UInt16, Int32)
Fill data to destination.
Declaration
public static void Fill(ushort *dest, ushort value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16* | dest | Destination. |
System.UInt16 | value | Data value. |
System.Int32 | size | Data size. |
Fill(UInt16[], UInt16)
Fill data to destination.
Declaration
public static void Fill(ushort[] dest, ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | dest | Destination. |
System.UInt16 | value | Data value. |
Fill(UInt32*, UInt32, Int32)
Fill data to destination.
Declaration
public static void Fill(uint *dest, uint value, int size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32* | dest | Destination. |
System.UInt32 | value | Data value. |
System.Int32 | size | Data size. |
Fill(UInt32[], UInt32)
Fill data to destination.
Declaration
public static void Fill(uint[] dest, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | dest | Destination. |
System.UInt32 | value | Data value. |