Mono.Debugger.Backend.Mono.MetadataHelper.MonoClassGetMethod C# (CSharp) Method

MonoClassGetMethod() public method

public MonoClassGetMethod ( TargetMemoryAccess memory, TargetAddress klass, int index ) : TargetAddress
memory TargetMemoryAccess
klass TargetAddress
index int
return TargetAddress
        public TargetAddress MonoClassGetMethod(TargetMemoryAccess memory, TargetAddress klass,
							 int index)
        {
            TargetAddress methods = memory.ReadAddress (
                klass + MonoMetadataInfo.KlassMethodsOffset);

            if (methods.IsNull)
                throw new TargetException (TargetError.ClassNotInitialized);

            methods += index * memory.TargetAddressSize;
            return memory.ReadAddress (methods);
        }