MetaData Root (20 bytes + UTF-8 Version String + quad align padding) StreamHeaders (8 bytes + null terminated name string + quad align padding) Streams #~ (always present - holds metadata tables) #Strings (always present - holds identifier strings) #US (Userstring heap) #Blob (signature blobs) #GUID (guids for assemblies or Modules)
Esempio n. 1
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasFieldMarshal) + md.BlobIndexSize();
 }
Esempio n. 2
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasDeclSecurity) + md.BlobIndexSize();
 }
Esempio n. 3
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.StringsIndexSize() + md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Esempio n. 4
0
 internal static uint Size(MetaData md)
 {
     return 8 + md.StringsIndexSize() + md.BlobIndexSize() + md.TableIndexSize(MDTable.Param);
 }
Esempio n. 5
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasCustomAttr) + md.CodedIndexSize(CIx.CustomAttributeType) + md.BlobIndexSize();
 }
Esempio n. 6
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();
 }
Esempio n. 7
0
 internal static uint Size(MetaData md)
 {
     return 2+ md.CodedIndexSize(CIx.MemberForwarded) +
         md.StringsIndexSize() +  md.TableIndexSize(MDTable.ModuleRef);
 }
Esempio n. 8
0
 internal static uint Size(MetaData md)
 {
     return 6 + md.TableIndexSize(MDTable.TypeDef);
 }
Esempio n. 9
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasConstant) + md.BlobIndexSize();
 }
Esempio n. 10
0
 internal static uint Size(MetaData md)
 {
     return 4 + md.StringsIndexSize();
 }
Esempio n. 11
0
 internal static uint Size(MetaData md)
 {
     return md.BlobIndexSize();
 }
Esempio n. 12
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.StringsIndexSize() + 3 * md.GUIDIndexSize();
 }
Esempio n. 13
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.MethodDefOrRef) + md.BlobIndexSize();
 }
Esempio n. 14
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.TableIndexSize(MDTable.Method) + md.CodedIndexSize(CIx.HasSemantics);
 }
Esempio n. 15
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.MemberRefParent) + md.StringsIndexSize() + md.BlobIndexSize();
 }
Esempio n. 16
0
 internal static uint Size(MetaData md)
 {
     return 8 + 2* md.StringsIndexSize() + md.CodedIndexSize(CIx.Implementation);
 }
Esempio n. 17
0
 internal static uint Size(MetaData md)
 {
     return 4 + md.TableIndexSize(MDTable.Field);
 }
Esempio n. 18
0
 internal static uint Size(MetaData md)
 {
     return 4 + 2 * md.StringsIndexSize() +
         md.CodedIndexSize(CIx.TypeDefOrRef) +
         md.TableIndexSize(MDTable.Field) +
         md.TableIndexSize(MDTable.Method);
 }
Esempio n. 19
0
 internal static uint Size(MetaData md)
 {
     return 16 + md.BlobIndexSize() + 2 * md.StringsIndexSize();
 }
Esempio n. 20
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.ResolutionScope) + 2 * md.StringsIndexSize();
 }
Esempio n. 21
0
 internal static uint Size(MetaData md)
 {
     return md.TableIndexSize(MDTable.TypeDef) +
         md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Esempio n. 22
0
 internal static uint Size(MetaData md, MDTable tabIx)
 {
     return md.TableIndexSize(MDTable.TypeDef) + md.TableIndexSize(tabIx);
 }