当前位置: 首页>>代码示例>>C#>>正文


C# TargetMemoryAccess.ReadByte方法代码示例

本文整理汇总了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;
            }
        }
开发者ID:baulig,项目名称:debugger,代码行数:10,代码来源:Architecture_X86_64.cs

示例2: IsRetInstruction

        internal override bool IsRetInstruction(TargetMemoryAccess memory,
							 TargetAddress address)
        {
            return memory.ReadByte (address) == 0xc3;
        }
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:Architecture_X86_64.cs

示例3: MonoArrayTypeGetRank

        public int MonoArrayTypeGetRank(TargetMemoryAccess memory,
						 TargetAddress atype)
        {
            return memory.ReadByte (atype + memory.TargetAddressSize);
        }
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:MetadataHelper.cs

示例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 ();
            }
        }
开发者ID:baulig,项目名称:debugger,代码行数:22,代码来源:MetadataHelper.cs

示例5: MonoArrayTypeGetNumLoBounds

        public int MonoArrayTypeGetNumLoBounds(TargetMemoryAccess memory,
							TargetAddress atype)
        {
            return memory.ReadByte (atype + memory.TargetAddressSize + 2);
        }
开发者ID:baulig,项目名称:debugger,代码行数:5,代码来源:MetadataHelper.cs


注:本文中的TargetMemoryAccess.ReadByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。