C# Класс Binarysharp.MemoryManagement.Memory.MemoryFactory

Class providing tools for manipulating memory space.
Наследование: IFactory
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
InternalRemoteAllocations List
MemorySharp MemorySharp

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

Метод Описание
Allocate ( int size, MemoryProtectionFlags protection = MemoryProtectionFlags.ExecuteReadWrite, bool mustBeDisposed = true ) : RemoteAllocation

Allocates a region of memory within the virtual address space of the remote process.

Deallocate ( RemoteAllocation allocation ) : void

Deallocates a region of memory previously allocated within the virtual address space of the remote process.

Dispose ( ) : void

Releases all resources used by the MemoryFactory object.

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

Метод Описание
MemoryFactory ( MemorySharp memorySharp ) : System

Initializes a new instance of the MemoryFactory class.

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

Allocate() публичный Метод

Allocates a region of memory within the virtual address space of the remote process.
public Allocate ( int size, MemoryProtectionFlags protection = MemoryProtectionFlags.ExecuteReadWrite, bool mustBeDisposed = true ) : RemoteAllocation
size int The size of the memory to allocate.
protection MemoryProtectionFlags The protection of the memory to allocate.
mustBeDisposed bool The allocated memory will be released when the finalizer collects the object.
Результат RemoteAllocation

Deallocate() публичный Метод

Deallocates a region of memory previously allocated within the virtual address space of the remote process.
public Deallocate ( RemoteAllocation allocation ) : void
allocation RemoteAllocation The allocated memory to release.
Результат void

Dispose() публичный Метод

Releases all resources used by the MemoryFactory object.
public Dispose ( ) : void
Результат void

Описание свойств

InternalRemoteAllocations защищенное свойство

The list containing all allocated memory.
protected List InternalRemoteAllocations
Результат List

MemorySharp защищенное свойство

The reference of the MemorySharp object.
protected MemorySharp MemorySharp
Результат MemorySharp