本文整理汇总了C#中TargetMemoryAccess.ReadByte方法的典型用法代码示例。如果您正苦于以下问题:C# TargetMemoryAccess.ReadByte方法的具体用法?C# TargetMemoryAccess.ReadByte怎么用?C# TargetMemoryAccess.ReadByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TargetMemoryAccess
的用法示例。
在下文中一共展示了TargetMemoryAccess.ReadByte方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsSyscallInstruction
internal override bool IsSyscallInstruction(TargetMemoryAccess memory,
TargetAddress address)
{
try {
return (memory.ReadByte (address - 2) == 0x0f) &&
(memory.ReadByte (address - 1) == 0x05);
} catch {
return false;
}
}
示例2: IsRetInstruction
internal override bool IsRetInstruction(TargetMemoryAccess memory,
TargetAddress address)
{
return memory.ReadByte (address) == 0xc3;
}
示例3: MonoArrayTypeGetRank
public int MonoArrayTypeGetRank(TargetMemoryAccess memory,
TargetAddress atype)
{
return memory.ReadByte (atype + memory.TargetAddressSize);
}
示例4: MonoArrayTypeGetBounds
internal void MonoArrayTypeGetBounds(TargetMemoryAccess memory,
TargetAddress data)
{
//
// FIXME: Only check whether the low bounds are all zero
//
int num_sizes = memory.ReadByte (data + memory.TargetAddressSize + 1);
if (num_sizes != 0)
throw new InternalError ();
int num_lobounds = memory.ReadByte (data + memory.TargetAddressSize + 2);
if (num_lobounds == 0)
return;
TargetAddress array = memory.ReadAddress (data + 3 * memory.TargetAddressSize);
TargetBinaryReader bounds = memory.ReadMemory (array, num_lobounds * 4).GetReader ();
for (int i = 0; i < num_lobounds; i++) {
int bound = bounds.ReadInt32 ();
if (bound != 0)
throw new InternalError ();
}
}
示例5: MonoArrayTypeGetNumLoBounds
public int MonoArrayTypeGetNumLoBounds(TargetMemoryAccess memory,
TargetAddress atype)
{
return memory.ReadByte (atype + memory.TargetAddressSize + 2);
}