C# Class Accord.SystemTools

Set of systems tools.

The class is a container of different system tools, which are used across the framework. Some of these tools are platform specific, so their implementation is different on different platform, like .NET and Mono.

Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode Description
CopyUnmanagedMemory ( IntPtr dst, IntPtr src, int count ) : IntPtr

Copy block of unmanaged memory.

This function is required because of the fact that .NET does not provide any way to copy unmanaged blocks, but provides only methods to copy from unmanaged memory to managed memory and vise versa.

CopyUnmanagedMemory ( byte dst, byte src, int count ) : byte*

Copy block of unmanaged memory.

This function is required because of the fact that .NET does not provide any way to copy unmanaged blocks, but provides only methods to copy from unmanaged memory to managed memory and vise versa.

SetUnmanagedMemory ( IntPtr dst, int filler, int count ) : IntPtr

Fill memory region with specified value.

SetUnmanagedMemory ( byte dst, int filler, int count ) : byte*

Fill memory region with specified value.

Private Methods

Méthode Description
memcpy ( byte dst, byte src, int count ) : byte*
memset ( byte dst, int filler, int count ) : byte*

Method Details

CopyUnmanagedMemory() public static méthode

Copy block of unmanaged memory.

This function is required because of the fact that .NET does not provide any way to copy unmanaged blocks, but provides only methods to copy from unmanaged memory to managed memory and vise versa.

public static CopyUnmanagedMemory ( IntPtr dst, IntPtr src, int count ) : IntPtr
dst System.IntPtr Destination pointer.
src System.IntPtr Source pointer.
count int Memory block's length to copy.
Résultat System.IntPtr

CopyUnmanagedMemory() public static méthode

Copy block of unmanaged memory.

This function is required because of the fact that .NET does not provide any way to copy unmanaged blocks, but provides only methods to copy from unmanaged memory to managed memory and vise versa.

public static CopyUnmanagedMemory ( byte dst, byte src, int count ) : byte*
dst byte Destination pointer.
src byte Source pointer.
count int Memory block's length to copy.
Résultat byte*

SetUnmanagedMemory() public static méthode

Fill memory region with specified value.
public static SetUnmanagedMemory ( IntPtr dst, int filler, int count ) : IntPtr
dst System.IntPtr Destination pointer.
filler int Filler byte's value.
count int Memory block's length to fill.
Résultat System.IntPtr

SetUnmanagedMemory() public static méthode

Fill memory region with specified value.
public static SetUnmanagedMemory ( byte dst, int filler, int count ) : byte*
dst byte Destination pointer.
filler int Filler byte's value.
count int Memory block's length to fill.
Résultat byte*