CodedIndexSize() private method

private CodedIndexSize ( CIx code ) : uint
code CIx
return uint
Example #1
0
 internal static uint Size(MetaData md)
 {
     return md.TableIndexSize(MDTable.TypeDef) +
         md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Example #2
0
 internal static uint Size(MetaData md)
 {
     if (extraField)
         return 6 + md.CodedIndexSize(CIx.TypeOrMethodDef) + md.StringsIndexSize();
     else
         return 4 + md.CodedIndexSize(CIx.TypeOrMethodDef) + md.StringsIndexSize();
 }
Example #3
0
 internal static uint Size(MetaData md)
 {
     return 2+ md.CodedIndexSize(CIx.MemberForwarded) +
         md.StringsIndexSize() +  md.TableIndexSize(MDTable.ModuleRef);
 }
Example #4
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasFieldMarshal) + md.BlobIndexSize();
 }
Example #5
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.MemberRefParent) + md.StringsIndexSize() + md.BlobIndexSize();
 }
Example #6
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasDeclSecurity) + md.BlobIndexSize();
 }
Example #7
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.StringsIndexSize() + md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Example #8
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.ResolutionScope) + 2 * md.StringsIndexSize();
 }
Example #9
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasCustomAttr) + md.CodedIndexSize(CIx.CustomAttributeType) + md.BlobIndexSize();
 }
Example #10
0
 internal static uint Size(MetaData md)
 {
     return 4 + 2 * md.StringsIndexSize() +
         md.CodedIndexSize(CIx.TypeDefOrRef) +
         md.TableIndexSize(MDTable.Field) +
         md.TableIndexSize(MDTable.Method);
 }
Example #11
0
 internal static uint Size(MetaData md)
 {
     return 8 + 2* md.StringsIndexSize() + md.CodedIndexSize(CIx.Implementation);
 }
Example #12
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasConstant) + md.BlobIndexSize();
 }
Example #13
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.MethodDefOrRef) + md.BlobIndexSize();
 }
Example #14
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.TableIndexSize(MDTable.Method) + md.CodedIndexSize(CIx.HasSemantics);
 }