C# Класс CsDebugScript.Process

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

Private Properties

Свойство Тип Описание
CastVariableToUserType Variable
ClearMetadataCache void
DoReadAnsiString string
DoReadUnicodeString string
FromClrType CodeType
GetModuleByAddress Module
GetModuleByInnerAddress Module
GetModuleByName Module
GetUserTypeDescription UserTypeDescription[]
GetUserTypes List
Process System
ReadString string
UpdateModuleByNameCache void

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

Метод Описание
FindMemoryRegion ( ulong address ) : int

Finds the index of memory region where the specified address is located or -1 if not found.

GetGlobal ( string name ) : Variable

Gets the global variable.

GetPointerSize ( ) : uint

Gets the size of the pointer.

InvalidateProcessCache ( ) : void

Invalidates cache structures. Use when memory state changes (e.g. during live debugging).

ToString ( ) : string

Returns a System.String that represents this instance.

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

Метод Описание
CastVariableToUserType ( Variable variable ) : Variable

Casts the specified variable to a user type.

ClearMetadataCache ( ) : void

Clears the process metadata cache.

DoReadAnsiString ( int>.Tuple tuple ) : string

Does the actual ANSI string read.

DoReadUnicodeString ( int>.Tuple tuple ) : string

Does the actual unicode string read.

FromClrType ( Microsoft clrType ) : CodeType

Creates CodeType from the CLR type.

GetModuleByAddress ( ulong moduleAddress ) : Module

Gets the module located at the specified module address.

GetModuleByInnerAddress ( ulong address ) : Module

Gets the module that contains specified address in its address space.

GetModuleByName ( string name ) : Module

Gets the module with the specified name.

GetUserTypeDescription ( Type type ) : UserTypeDescription[]

Gets the user type description from the specified type.

GetUserTypes ( ) : List

Gets the user types.

Process ( uint id ) : System

Initializes a new instance of the Process class.

ReadString ( ulong address, int charSize, int length = -1 ) : string

Reads the string and caches it inside this object.

UpdateModuleByNameCache ( Module module, string name ) : void

Updates the cache of modules specified by the name.

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

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

Finds the index of memory region where the specified address is located or -1 if not found.
public FindMemoryRegion ( ulong address ) : int
address ulong The address.
Результат int

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

Gets the global variable.
Global variable wasn't found, name:
public GetGlobal ( string name ) : Variable
name string The name.
Результат Variable

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

Gets the size of the pointer.
public GetPointerSize ( ) : uint
Результат uint

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

Invalidates cache structures. Use when memory state changes (e.g. during live debugging).
public InvalidateProcessCache ( ) : void
Результат void

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

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string