PERWAPI.FieldDef.SetOffset C# (CSharp) Method

SetOffset() public method

Set the offset of the field. Used for sequential or explicit classes. (.field [offs])
public SetOffset ( uint offs ) : void
offs uint field offset
return void
        public void SetOffset(uint offs)
        {
            offset = offs;
            hasOffset = true;
        }

Usage Example

Ejemplo n.º 1
0
 internal override sealed void Resolve(PEReader buff)
 {
     field = (FieldDef)buff.GetElement(MDTable.Field,fieldIx);
     field.SetOffset(offset);
 }