// dnlib: See LICENSE.txt for more info
using System;
namespace dnlib.DotNet {
///
/// See CorHdr.h/CorCallingConvention
///
[Flags]
public enum CallingConvention : byte {
/// The managed calling convention
Default = 0x0,
///
C = 0x1,
///
StdCall = 0x2,
///
ThisCall = 0x3,
///
FastCall = 0x4,
///
VarArg = 0x5,
///
Field = 0x6,
///
LocalSig = 0x7,
///
Property = 0x8,
/// Unmanaged calling convention encoded as modopts
Unmanaged = 0x9,
/// generic method instantiation
GenericInst = 0xA,
/// used ONLY for 64bit vararg PInvoke calls
NativeVarArg = 0xB,
/// Calling convention is bottom 4 bits
Mask = 0x0F,
/// Generic method
Generic = 0x10,
/// Method needs a 'this' parameter
HasThis = 0x20,
/// 'this' parameter is the first arg if set (else it's hidden)
ExplicitThis = 0x40,
/// Used internally by the CLR
ReservedByCLR = 0x80,
}
}