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)
Example #1
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasFieldMarshal) + md.BlobIndexSize();
 }
Example #2
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasDeclSecurity) + md.BlobIndexSize();
 }
Example #3
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.StringsIndexSize() + md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Example #4
0
 internal static uint Size(MetaData md)
 {
     return 8 + md.StringsIndexSize() + md.BlobIndexSize() + md.TableIndexSize(MDTable.Param);
 }
Example #5
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.HasCustomAttr) + md.CodedIndexSize(CIx.CustomAttributeType) + md.BlobIndexSize();
 }
Example #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();
 }
Example #7
0
 internal static uint Size(MetaData md)
 {
     return 2+ md.CodedIndexSize(CIx.MemberForwarded) +
         md.StringsIndexSize() +  md.TableIndexSize(MDTable.ModuleRef);
 }
Example #8
0
 internal static uint Size(MetaData md)
 {
     return 6 + md.TableIndexSize(MDTable.TypeDef);
 }
Example #9
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.CodedIndexSize(CIx.HasConstant) + md.BlobIndexSize();
 }
Example #10
0
 internal static uint Size(MetaData md)
 {
     return 4 + md.StringsIndexSize();
 }
Example #11
0
 internal static uint Size(MetaData md)
 {
     return md.BlobIndexSize();
 }
Example #12
0
 internal static uint Size(MetaData md)
 {
     return 2 + md.StringsIndexSize() + 3 * md.GUIDIndexSize();
 }
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);
 }
Example #15
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.MemberRefParent) + md.StringsIndexSize() + md.BlobIndexSize();
 }
Example #16
0
 internal static uint Size(MetaData md)
 {
     return 8 + 2* md.StringsIndexSize() + md.CodedIndexSize(CIx.Implementation);
 }
Example #17
0
 internal static uint Size(MetaData md)
 {
     return 4 + md.TableIndexSize(MDTable.Field);
 }
Example #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);
 }
Example #19
0
 internal static uint Size(MetaData md)
 {
     return 16 + md.BlobIndexSize() + 2 * md.StringsIndexSize();
 }
Example #20
0
 internal static uint Size(MetaData md)
 {
     return md.CodedIndexSize(CIx.ResolutionScope) + 2 * md.StringsIndexSize();
 }
Example #21
0
 internal static uint Size(MetaData md)
 {
     return md.TableIndexSize(MDTable.TypeDef) +
         md.CodedIndexSize(CIx.TypeDefOrRef);
 }
Example #22
0
 internal static uint Size(MetaData md, MDTable tabIx)
 {
     return md.TableIndexSize(MDTable.TypeDef) + md.TableIndexSize(tabIx);
 }