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.

Mostra file Open project: accord-net/framework Class Usage Examples

Public Methods

Method 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

Method Description
memcpy ( byte dst, byte src, int count ) : byte*
memset ( byte dst, int filler, int count ) : byte*

Method Details

CopyUnmanagedMemory() public static method

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.
return System.IntPtr

CopyUnmanagedMemory() public static method

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.
return byte*

SetUnmanagedMemory() public static method

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.
return System.IntPtr

SetUnmanagedMemory() public static method

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.
return byte*