本文整理汇总了C#中Address.ToUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# Address.ToUInt32方法的具体用法?C# Address.ToUInt32怎么用?C# Address.ToUInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Address
的用法示例。
在下文中一共展示了Address.ToUInt32方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Enqueue
private void Enqueue(Address addr, Procedure proc)
{
fakeArch.Test_AddTrace(new RtlTrace(addr.ToUInt32())
{
m => {
m.Assign(m.LoadDw(m.Word32(0x3000)), m.Word32(42));
}
});
scan.EnqueueJumpTarget(addr, addr, proc, arch.CreateProcessorState());
}
示例2: RelocateBytes
private byte[] RelocateBytes(Address addrLoad)
{
var rel = new HunkRelocator(this.hunkFile);
// Get sizes of all segments
var sizes = rel.GetSegmentSizes();
// Determine begin addrs for all segments
uint base_addr = addrLoad.ToUInt32();
var addrs = rel.GetSegmentRelocationAddresses(base_addr);
// Relocate and return data of segments
var datas = rel.Relocate(addrs);
if (datas == null)
throw new BadImageFormatException("Relocation failed.");
return datas;
//print "Relocate to base address",base_addr
//print "Bases: "," ".join(map(lambda x:"%06x"%(x),addrs))
//print "Sizes: "," ".join(map(lambda x:"%06x"%(x),sizes))
//print "Data: "," ".join(map(lambda x:"%06x"%(len(x)),datas))
//print "Total: ","%06x"%(rel.get_total_size())
}
示例3: Given_GlobalVariable
private void Given_GlobalVariable(Address addr, DataType dt)
{
program.GlobalFields.Fields.Add((int)addr.ToUInt32(), dt);
}
示例4: SetInstructionPointer
public override void SetInstructionPointer(Address addr)
{
regData[A32Registers.pc.Number] = addr.ToUInt32();
isValid |= 1u << A32Registers.pc.Number;
}