本文整理汇总了C#中Engine.ReadPointer方法的典型用法代码示例。如果您正苦于以下问题:C# Engine.ReadPointer方法的具体用法?C# Engine.ReadPointer怎么用?C# Engine.ReadPointer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine.ReadPointer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadInternal
private object ReadInternal(Engine engine, IntPtr objectAddress)
{
var actualObjectAddress = engine.ReadPointer(objectAddress);
if (actualObjectAddress == IntPtr.Zero)
{
return (UnrealObject)null;
}
var obj = engine.GetObject(actualObjectAddress);
if (obj == null)
{
throw new InvalidOperationException();
}
return obj;
}
示例2: Read
internal override object Read(Engine engine, IntPtr objectAddress)
{
var classAddress = engine.ReadPointer(objectAddress + this.Offset);
if (classAddress == IntPtr.Zero)
{
return (UnrealObject)null;
}
var uclass = engine.GetClass(classAddress);
if (uclass == null)
{
throw new InvalidOperationException();
}
return uclass;
}
示例3: ReadInternal
private object ReadInternal(Engine engine, IntPtr objectAddress)
{
if (this.Structure.Path == "Core.Object.Pointer")
{
return engine.ReadPointer(objectAddress);
}
if (this.Structure.Path == "Core.Object.QWord")
{
return engine.Runtime.ReadValueU64(objectAddress);
}
if (this.Structure.Path == "Core.Object.Double")
{
return engine.Runtime.ReadValueF64(objectAddress);
}
return new UnrealObjectShim(engine, objectAddress, this.Structure, null, null).Object;
}