public void AddFieldDef(FieldDef fielddef) { if (current_field_native_type != null) { fielddef.AddMarshalInfo(current_field_native_type); current_field_native_type = null; } if (current_typedef != null) { current_typedef.AddFieldDef(fielddef); } else { global_field_table.Add( new DictionaryEntry(fielddef.Name, fielddef.Type.FullName), fielddef); } }
internal FieldMarshal(MetaDataElement field, NativeType nType) { this.field = field; this.nt = nType; tabIx = MDTable.FieldMarshal; }
public NativeArray(NativeType elemType, int numElem, int parNumForLen) : this (elemType, numElem, parNumForLen, -1) { }
/* public NativeArray(NativeType elemType, int len) : base(0x2A) { this.elemType = elemType; this.len = len; } */ public NativeArray(NativeType elemType, int numElem, int parNumForLen, int elemMult) : base(0x2A) { this.elemType = elemType; this.numElem = numElem; parNum = parNumForLen; this.elemMult = elemMult; }
public NativeArray(NativeType elemType) : this (elemType, -1, -1, -1) { this.elemType = elemType; }
/* Add Marshal info for return type */ public void AddRetTypeMarshallInfo (NativeType marshallType) { ret_param.AddMarshallInfo (marshallType); }
/// <summary> /// Set the marshalling info for a field /// </summary> /// <param name="mInf"></param> public void SetMarshalInfo(NativeType marshallType) { flags |= (ushort) FieldAttr.HasFieldMarshal; marshalInfo = new FieldMarshal(this,marshallType); }
/// <summary> /// Add marshalling information about this parameter /// </summary> public void AddMarshallInfo(NativeType marshallType) { parMode |= (ushort) ParamAttr.HasFieldMarshal; marshalInfo = new FieldMarshal(this,marshallType); }
public void AddFieldDef (FieldDef fielddef) { if (current_field_native_type != null) { fielddef.AddMarshalInfo (current_field_native_type); current_field_native_type = null; } if (current_typedef != null) { current_typedef.AddFieldDef (fielddef); } else { global_field_table.Add ( new DictionaryEntry (fielddef.Name, fielddef.Type.FullName), fielddef); } }
public void AddFieldMarshalInfo (PEAPI.NativeType native_type) { current_field_native_type = native_type; }
/// <summary> /// Add marshalling information about this parameter /// </summary> public void AddMarshallInfo(NativeType marshallType) { parMode |= hasFieldMarshal; marshalInfo = new FieldMarshal(this,marshallType); }
public FixedArray(NativeType elemType, int numElems) : base(0x1E) { this.elemType = elemType; numElem = (uint)numElems; }
/* public NativeArray(NativeType elemType) : base(0x2A) { this.elemType = elemType; } public NativeArray(NativeType elemType, int len) : base(0x2A) { this.elemType = elemType; this.len = len; } */ public NativeArray(NativeType elemType, int numElem, int parNumForLen) : base(0x2A) { this.elemType = elemType; len = (uint)numElem; parNum = (uint)parNumForLen; }
/// <summary> /// Set the marshalling info for a field /// </summary> /// <param name="mInf"></param> public void SetMarshalInfo(NativeType marshallType) { flags |= HasFieldMarshal; marshalInfo = new FieldMarshal(this,marshallType); }
public void AddFieldMarshalInfo(PEAPI.NativeType native_type) { current_field_native_type = native_type; }