142 references to CodedIndex
Mono.Cecil (142)
Mono.Cecil.Metadata\Buffers.cs (2)
102 int GetCodedIndexSize (CodedIndex coded_index) 112 public void WriteCodedRID (uint rid, CodedIndex coded_index)
Mono.Cecil.Metadata\Utilities.cs (45)
42 public static MetadataToken GetMetadataToken (this CodedIndex self, uint data) 47 case CodedIndex.TypeDefOrRef: 59 case CodedIndex.HasConstant: 71 case CodedIndex.HasCustomAttribute: 121 case CodedIndex.HasFieldMarshal: 131 case CodedIndex.HasDeclSecurity: 143 case CodedIndex.MemberRefParent: 159 case CodedIndex.HasSemantics: 169 case CodedIndex.MethodDefOrRef: 179 case CodedIndex.MemberForwarded: 189 case CodedIndex.Implementation: 201 case CodedIndex.CustomAttributeType: 211 case CodedIndex.ResolutionScope: 225 case CodedIndex.TypeOrMethodDef: 234 case CodedIndex.HasCustomDebugInformation: 303 public static uint CompressMetadataToken (this CodedIndex self, MetadataToken token) 309 case CodedIndex.TypeDefOrRef: 321 case CodedIndex.HasConstant: 333 case CodedIndex.HasCustomAttribute: 383 case CodedIndex.HasFieldMarshal: 393 case CodedIndex.HasDeclSecurity: 405 case CodedIndex.MemberRefParent: 421 case CodedIndex.HasSemantics: 431 case CodedIndex.MethodDefOrRef: 441 case CodedIndex.MemberForwarded: 451 case CodedIndex.Implementation: 463 case CodedIndex.CustomAttributeType: 473 case CodedIndex.ResolutionScope: 487 case CodedIndex.TypeOrMethodDef: 497 case CodedIndex.HasCustomDebugInformation: 564 public static int GetSize (this CodedIndex self, Func<Table, int> counter) 570 case CodedIndex.TypeDefOrRef: 574 case CodedIndex.HasConstant: 578 case CodedIndex.HasCustomAttribute: 587 case CodedIndex.HasFieldMarshal: 591 case CodedIndex.HasDeclSecurity: 595 case CodedIndex.MemberRefParent: 599 case CodedIndex.HasSemantics: 603 case CodedIndex.MethodDefOrRef: 607 case CodedIndex.MemberForwarded: 611 case CodedIndex.Implementation: 615 case CodedIndex.CustomAttributeType: 619 case CodedIndex.ResolutionScope: 623 case CodedIndex.TypeOrMethodDef: 627 case CodedIndex.HasCustomDebugInformation:
Mono.Cecil.PE\Image.cs (1)
82 public int GetCodedIndexSize (CodedIndex coded_index)
Mono.Cecil.PE\ImageReader.cs (21)
478 int GetCodedIndexSize (CodedIndex index) 507 size = GetCodedIndexSize (CodedIndex.ResolutionScope) // ResolutionScope 513 + GetCodedIndexSize (CodedIndex.TypeDefOrRef) // BaseType 543 + GetCodedIndexSize (CodedIndex.TypeDefOrRef); // Interface 546 size = GetCodedIndexSize (CodedIndex.MemberRefParent) // Class 552 + GetCodedIndexSize (CodedIndex.HasConstant) // Parent 556 size = GetCodedIndexSize (CodedIndex.HasCustomAttribute) // Parent 557 + GetCodedIndexSize (CodedIndex.CustomAttributeType) // Type 561 size = GetCodedIndexSize (CodedIndex.HasFieldMarshal) // Parent 566 + GetCodedIndexSize (CodedIndex.HasDeclSecurity) // Parent 590 + GetCodedIndexSize (CodedIndex.TypeDefOrRef); // EventType 607 + GetCodedIndexSize (CodedIndex.HasSemantics); // Association 611 + GetCodedIndexSize (CodedIndex.MethodDefOrRef) // MethodBody 612 + GetCodedIndexSize (CodedIndex.MethodDefOrRef); // MethodDeclaration 622 + GetCodedIndexSize (CodedIndex.MemberForwarded) // MemberForwarded 668 + GetCodedIndexSize (CodedIndex.Implementation); // Implementation 673 + GetCodedIndexSize (CodedIndex.Implementation); // Implementation 681 + GetCodedIndexSize (CodedIndex.TypeOrMethodDef) // Owner 685 size = GetCodedIndexSize (CodedIndex.MethodDefOrRef) // Method 690 + GetCodedIndexSize (CodedIndex.TypeDefOrRef); // Constraint 727 size = GetCodedIndexSize (CodedIndex.HasCustomDebugInformation) // Parent
Mono.Cecil\AssemblyReader.cs (27)
475 int GetCodedIndexSize (CodedIndex index) 546 MetadataToken ReadMetadataToken (CodedIndex index) 734 var implementation = ReadMetadataToken (CodedIndex.Implementation); 960 type.BaseType = GetTypeDefOrRef (ReadMetadataToken (CodedIndex.TypeDefOrRef)); 1119 var scope_token = ReadMetadataToken (CodedIndex.ResolutionScope); 1257 var @interface = ReadMetadataToken (CodedIndex.TypeDefOrRef); 1486 var event_type = GetTypeDefOrRef (ReadMetadataToken (CodedIndex.TypeDefOrRef)); 1691 var association = ReadMetadataToken (CodedIndex.HasSemantics); 1877 var method = ReadMetadataToken (CodedIndex.MemberForwarded); 1923 ReadMetadataToken (CodedIndex.TypeOrMethodDef); 1942 var next = ReadMetadataToken (CodedIndex.TypeOrMethodDef); 2037 new Row<uint, MetadataToken> (i, ReadMetadataToken (CodedIndex.TypeDefOrRef))); 2089 var method = ReadMetadataToken (CodedIndex.MethodDefOrRef); 2093 var @override = ReadMetadataToken (CodedIndex.MethodDefOrRef); 2251 ReadMetadataToken (CodedIndex.MethodDefOrRef)); 2297 var token = ReadMetadataToken (CodedIndex.MemberRefParent); 2404 var owner = ReadMetadataToken (CodedIndex.HasConstant); 2479 var next = ReadMetadataToken (CodedIndex.HasCustomAttribute); 2480 ReadMetadataToken (CodedIndex.CustomAttributeType); 2523 ReadMetadataToken (CodedIndex.HasCustomAttribute); 2526 ReadMetadataToken (CodedIndex.CustomAttributeType)); 2594 var token = ReadMetadataToken (CodedIndex.HasFieldMarshal); 2633 var next = ReadMetadataToken (CodedIndex.HasDeclSecurity); 2673 ReadMetadataToken (CodedIndex.HasDeclSecurity); 2738 var implementation = ReadMetadataToken (CodedIndex.Implementation); 3162 var token = ReadMetadataToken (CodedIndex.HasCustomDebugInformation); 3289 return CodedIndex.TypeDefOrRef.GetMetadataToken (ReadCompressedUInt32 ());
Mono.Cecil\AssemblyWriter.cs (46)
272 rows [i].Col1, CodedIndex.ResolutionScope); // Scope 288 rows [i].Col4, CodedIndex.TypeDefOrRef); // Extends 340 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.TypeDefOrRef); // Interface 355 buffer.WriteCodedRID (rows [i].Col1, CodedIndex.MemberRefParent); 368 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.HasConstant); 384 buffer.WriteCodedRID (rows [i].Col1, CodedIndex.HasCustomAttribute); // Parent 385 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.CustomAttributeType); // Type 401 buffer.WriteCodedRID (rows [i].Col1, CodedIndex.HasFieldMarshal); 418 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.HasDeclSecurity); 489 buffer.WriteCodedRID (rows [i].Col3, CodedIndex.TypeDefOrRef); // EventType 524 buffer.WriteCodedRID (rows [i].Col3, CodedIndex.HasSemantics); // Association 540 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.MethodDefOrRef); // MethodBody 541 buffer.WriteCodedRID (rows [i].Col3, CodedIndex.MethodDefOrRef); // MethodDeclaration 570 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.MemberForwarded); // MemberForwarded 656 buffer.WriteCodedRID (rows [i].Col5, CodedIndex.Implementation); 669 buffer.WriteCodedRID (rows [i].Col4, CodedIndex.Implementation); 697 buffer.WriteCodedRID (rows [i].Col3, CodedIndex.TypeOrMethodDef); // Owner 708 buffer.WriteCodedRID (rows [i].Col1, CodedIndex.MethodDefOrRef); // Method 720 buffer.WriteCodedRID (rows [i].Col2, CodedIndex.TypeDefOrRef); // Constraint 814 buffer.WriteCodedRID (rows [i].Col1, CodedIndex.HasCustomDebugInformation); // Parent 1212 row.Col4 = CodedIndex.Implementation.CompressMetadataToken ( 1218 row.Col4 = CodedIndex.Implementation.CompressMetadataToken ( 1261 MakeCodedRID (GetExportedTypeScope (exported_type), CodedIndex.Implementation))); 1409 MakeCodedRID (scope_token, CodedIndex.ResolutionScope), 1427 static CodedRID MakeCodedRID (IMetadataTokenProvider provider, CodedIndex index) 1432 static CodedRID MakeCodedRID (MetadataToken token, CodedIndex index) 1462 MakeCodedRID (GetTypeToken (type.BaseType), CodedIndex.TypeDefOrRef), 1514 var a_owner = MakeCodedRID (a.Owner, CodedIndex.TypeOrMethodDef); 1515 var b_owner = MakeCodedRID (b.Owner, CodedIndex.TypeOrMethodDef); 1541 MakeCodedRID (generic_parameter.Owner, CodedIndex.TypeOrMethodDef), 1565 MakeCodedRID (GetTypeToken (constraint.ConstraintType), CodedIndex.TypeDefOrRef))); 1584 MakeCodedRID (GetTypeToken (iface_impl.InterfaceType), CodedIndex.TypeDefOrRef))); 1747 MakeCodedRID (method, CodedIndex.MemberForwarded), 1760 MakeCodedRID (method, CodedIndex.MethodDefOrRef), 1761 MakeCodedRID (LookupToken (overrides [i]), CodedIndex.MethodDefOrRef))); 1798 MakeCodedRID (owner, CodedIndex.HasFieldMarshal), 1859 MakeCodedRID (GetTypeToken (@event.EventType), CodedIndex.TypeDefOrRef))); 1889 MakeCodedRID (provider, CodedIndex.HasSemantics))); 1899 MakeCodedRID (owner.MetadataToken, CodedIndex.HasConstant), 2000 MakeCodedRID (owner, CodedIndex.HasCustomAttribute), 2001 MakeCodedRID (LookupToken (attribute.Constructor), CodedIndex.CustomAttributeType), 2017 MakeCodedRID (owner, CodedIndex.HasDeclSecurity), 2047 MakeCodedRID (GetTypeToken (member.DeclaringType), CodedIndex.MemberRefParent), 2083 MakeCodedRID (LookupToken (method_spec.ElementMethod), CodedIndex.MethodDefOrRef), 2529 MakeCodedRID (provider.MetadataToken, CodedIndex.HasCustomDebugInformation), 2767 return CodedIndex.TypeDefOrRef.CompressMetadataToken (metadata.LookupToken (type));