本文整理汇总了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_类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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_*);
}
}
开发者ID:tijoytom,项目名称:corert,代码行数:13,代码来源:CorInfoBase.cs
示例2: getFieldAddress
private void* getFieldAddress(IntPtr _this, CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{ throw new NotImplementedException("getFieldAddress"); }
开发者ID:smartmaster,项目名称:corert,代码行数:2,代码来源:CorInfoImpl.cs
示例3: HandleToObject
private FieldDesc HandleToObject(CORINFO_FIELD_STRUCT_* field) { return (FieldDesc)HandleToObject((IntPtr)field); }
开发者ID:smartmaster,项目名称:corert,代码行数:1,代码来源:CorInfoImpl.cs
示例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;
}
开发者ID:smartmaster,项目名称:corert,代码行数:8,代码来源:CorInfoImpl.cs
示例5: isFieldStatic
private bool isFieldStatic(IntPtr _this, CORINFO_FIELD_STRUCT_* fldHnd)
{
return HandleToObject(fldHnd).IsStatic;
}
开发者ID:smartmaster,项目名称:corert,代码行数:4,代码来源:CorInfoImpl.cs
示例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));
}
开发者ID:smartmaster,项目名称:corert,代码行数:13,代码来源:CorInfoImpl.cs
示例7: getFieldClass
private CORINFO_CLASS_STRUCT_* getFieldClass(IntPtr _this, CORINFO_FIELD_STRUCT_* field)
{
var fieldDesc = HandleToObject(field);
return ObjectToHandle(fieldDesc.OwningType);
}
开发者ID:smartmaster,项目名称:corert,代码行数:5,代码来源:CorInfoImpl.cs
示例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;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例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;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例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;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例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;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例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;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例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);
}
}
开发者ID:tijoytom,项目名称:corert,代码行数:13,代码来源:CorInfoBase.cs
示例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*);
}
}
开发者ID:tijoytom,项目名称:corert,代码行数:13,代码来源:CorInfoBase.cs
示例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));
}
开发者ID:hoyMS,项目名称:corert,代码行数:14,代码来源:CorInfoImpl.cs
示例16: getFieldOffset_wrapper
public virtual uint getFieldOffset_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field)
{
exception = IntPtr.Zero;
try
{
return getFieldOffset(field);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return (uint)0;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例17: getFieldAddress
private void* getFieldAddress(CORINFO_FIELD_STRUCT_* field, ref void* ppIndirection)
{
FieldDesc fieldDesc = HandleToObject(field);
Debug.Assert(fieldDesc.HasRva);
return (void*)ObjectToHandle(_compilation.GetFieldRvaData(fieldDesc));
}
开发者ID:hoyMS,项目名称:corert,代码行数:6,代码来源:CorInfoImpl.cs
示例18: MarshalAs
[return: MarshalAs(UnmanagedType.I1)]public virtual bool isWriteBarrierHelperRequired_wrapper(IntPtr _this, out IntPtr exception, CORINFO_FIELD_STRUCT_* field)
{
exception = IntPtr.Zero;
try
{
return isWriteBarrierHelperRequired(field);
}
catch (Exception ex)
{
exception = AllocException(ex);
}
return false;
}
开发者ID:nguerrera,项目名称:corert,代码行数:14,代码来源:CorInfoBase.cs
示例19: getFieldName
private byte* getFieldName(IntPtr _this, CORINFO_FIELD_STRUCT_* ftn, byte** moduleName)
{
var field = HandleToObject(ftn);
if (moduleName != null)
{
throw new NotImplementedException("getFieldName");
}
return (byte*)GetPin(StringToUTF8(field.Name));
}
开发者ID:smartmaster,项目名称:corert,代码行数:10,代码来源:CorInfoImpl.cs
示例20: getFieldType
private CorInfoType getFieldType(IntPtr _this, CORINFO_FIELD_STRUCT_* field, ref CORINFO_CLASS_STRUCT_* structType, CORINFO_CLASS_STRUCT_* memberParent)
{
var fieldDesc = HandleToObject(field);
return asCorInfoType(fieldDesc.FieldType, out structType);
}
开发者ID:smartmaster,项目名称:corert,代码行数:5,代码来源:CorInfoImpl.cs
注:本文中的Internal.JitInterface.CORINFO_FIELD_STRUCT_类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论