本文整理汇总了C#中Internal.JitInterface.CORINFO_FIELD_STRUCT_类的典型用法代码示例。如果您正苦于以下问题:C# CORINFO_FIELD_STRUCT_类的具体用法?C# CORINFO_FIELD_STRUCT_怎么用?C# CORINFO_FIELD_STRUCT_使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CORINFO_FIELD_STRUCT_类属于Internal.JitInterface命名空间,在下文中一共展示了CORINFO_FIELD_STRUCT_类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: _embedFieldHandle
static CORINFO_FIELD_STRUCT_* _embedFieldHandle(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* handle, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.embedFieldHandle(handle, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(CORINFO_FIELD_STRUCT_*);
}
}
示例2: getFieldAddress
private void* getFieldAddress(IntPtr _this, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{ throw new NotImplementedException("getFieldAddress"); }
示例3: HandleToObject
private FieldDesc HandleToObject(CORINFO_FIELD_STRUCT_* field) { return (FieldDesc)HandleToObject((IntPtr)field); }
示例4: getFieldOffset
private uint getFieldOffset(IntPtr _this, CORINFO_FIELD_STRUCT_* field)
{
var fieldDesc = HandleToObject(field);
Debug.Assert(fieldDesc.Offset != FieldAndOffset.InvalidOffset);
return (uint)fieldDesc.Offset;
}
示例5: isFieldStatic
private bool isFieldStatic(IntPtr _this, CORINFO_FIELD_STRUCT_* fldHnd)
{
return HandleToObject(fldHnd).IsStatic;
}
示例6: getArrayInitializationData
private void* getArrayInitializationData(IntPtr _this, CORINFO_FIELD_STRUCT_* field, uint size)
{
var fd = HandleToObject(field);
// Check for invalid arguments passed to InitializeArray intrinsic
if (!fd.HasRva ||
size > fd.FieldType.GetElementSize())
{
return null;
}
return (void*)ObjectToHandle(_compilation.GetFieldRvaData(fd));
}
示例7: getFieldClass
private CORINFO_CLASS_STRUCT_* getFieldClass(IntPtr _this, CORINFO_FIELD_STRUCT_* field)
{
var fieldDesc = HandleToObject(field);
return ObjectToHandle(fieldDesc.OwningType);
}
示例8: getFieldClass_wrapper
public virtual CORINFO_CLASS_STRUCT_* getFieldClass_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field)
{
exception = IntPtr.Zero;
try
{
return getFieldClass(field);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (CORINFO_CLASS_STRUCT_*)0;
}
示例9: getFieldType_wrapper
public virtual CorInfoType getFieldType_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field, ref CORINFO_CLASS_STRUCT_* structType, CORINFO_CLASS_STRUCT_* memberParent)
{
exception = IntPtr.Zero;
try
{
return getFieldType(field, ref structType, memberParent);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (CorInfoType)0;
}
示例10: getArrayInitializationData_wrapper
public virtual void* getArrayInitializationData_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field, uint size)
{
exception = IntPtr.Zero;
try
{
return getArrayInitializationData(field, size);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (void*)0;
}
示例11: getFieldName_wrapper
public virtual byte* getFieldName_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* ftn, byte** moduleName)
{
exception = IntPtr.Zero;
try
{
return getFieldName(ftn, moduleName);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (byte*)0;
}
示例12: initClass_wrapper
public virtual CorInfoInitClassResult initClass_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field, CORINFO_METHOD_STRUCT_* method, CORINFO_CONTEXT_STRUCT* context, [MarshalAs(UnmanagedType.Bool)]bool speculative)
{
exception = IntPtr.Zero;
try
{
return initClass(field, method, context, speculative);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (CorInfoInitClassResult)0;
}
示例13: _getFieldThreadLocalStoreID
static uint _getFieldThreadLocalStoreID(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldThreadLocalStoreID(field, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(uint);
}
}
示例14: _getFieldAddress
static void* _getFieldAddress(IntPtr thisHandle, IntPtr* ppException, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{
var _this = GetThis(thisHandle);
try
{
return _this.getFieldAddress(field, ref ppIndirection);
}
catch (Exception ex)
{
*ppException = _this.AllocException(ex);
return default(void*);
}
}
示例15: getFieldName
private byte* getFieldName(CORINFO_FIELD_STRUCT_* ftn, byte** moduleName)
{
var field = HandleToObject(ftn);
if (moduleName != null)
{
MetadataType typeDef = field.OwningType.GetTypeDefinition() as MetadataType;
if (typeDef != null)
*moduleName = (byte*)GetPin(StringToUTF8(typeDef.GetFullName()));
else
*moduleName = (byte*)GetPin(StringToUTF8("unknown"));
}
return (byte*)GetPin(StringToUTF8(field.Name));
}