C# Класс 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.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
memcpy ( byte dst, byte src, int count ) : byte*
memset ( byte dst, int filler, int count ) : byte*

Описание методов

CopyUnmanagedMemory() публичный статический Метод

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.
Результат System.IntPtr

CopyUnmanagedMemory() публичный статический Метод

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.
Результат byte*

SetUnmanagedMemory() публичный статический Метод

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.
Результат System.IntPtr

SetUnmanagedMemory() публичный статический Метод

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.
Результат byte*