254 references to Tables
System.AddIn (254)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (199)
13
public MDTables.
Tables
Table;
16
public MetadataToken(MDTables.
Tables
table, UInt32 index)
38
internal static readonly String[] Names = new String[(Int32)
Tables
.MaxTable + 1];
39
internal static readonly Boolean[] IsDefined = new Boolean[(Int32)
Tables
.MaxTable + 1];
107
Names[(Int32)
Tables
.AssemblyOS] = "AssemblyOS";
108
Names[(Int32)
Tables
.AssemblyProcessor] = "AssemblyProcessor";
109
Names[(Int32)
Tables
.AssemblyRef] = "AssemblyRef";
110
Names[(Int32)
Tables
.AssemblyRefOS] = "AssemblyRefOS";
111
Names[(Int32)
Tables
.AssemblyRefProcessor] = "AssemblyRefProcessor";
112
Names[(Int32)
Tables
.ClassLayout] = "ClassLayout";
113
Names[(Int32)
Tables
.Constant] = "Constant";
114
Names[(Int32)
Tables
.CustomAttribute] = "CustomAttribute";
115
Names[(Int32)
Tables
.DeclSecurity] = "DeclSecurity";
116
Names[(Int32)
Tables
.EventMap] = "EventMap";
117
Names[(Int32)
Tables
.ExportedType] = "ExportedType";
118
Names[(Int32)
Tables
.FieldDef] = "FieldDef";
119
Names[(Int32)
Tables
.FieldLayout] = "FieldLayout";
120
Names[(Int32)
Tables
.FieldMarshal] = "FieldMarshal";
121
Names[(Int32)
Tables
.FieldRVA] = "FieldRVA";
122
Names[(Int32)
Tables
.File] = "File";
123
Names[(Int32)
Tables
.GenericParam] = "GenericParam";
124
Names[(Int32)
Tables
.GenericMethod] = "GenericMethod";
125
Names[(Int32)
Tables
.GenericConstraint] = "GenericConstraint";
126
Names[(Int32)
Tables
.ImplMap] = "ImplMap";
127
Names[(Int32)
Tables
.InterfaceImpl] = "InterfaceImpl";
128
Names[(Int32)
Tables
.ManifestResource] = "ManifestResource";
129
Names[(Int32)
Tables
.MemberRef] = "MemberRef";
130
Names[(Int32)
Tables
.MethodDef] = "MethodDef";
131
Names[(Int32)
Tables
.MethodImpl] = "MethodImpl";
132
Names[(Int32)
Tables
.MethodSemantics] = "MethodSemantics";
133
Names[(Int32)
Tables
.ModuleRef] = "ModuleRef";
134
Names[(Int32)
Tables
.NestedClass] = "NestedClass";
135
Names[(Int32)
Tables
.ParamDef] = "ParamDef";
136
Names[(Int32)
Tables
.PropertyMap] = "PropertyMap";
137
Names[(Int32)
Tables
.StandAloneSig] = "StandAloneSig";
138
Names[(Int32)
Tables
.TypeDef] = "TypeDef";
139
Names[(Int32)
Tables
.TypeRef] = "TypeRef";
140
Names[(Int32)
Tables
.TypeSpec] = "TypeSpec";
141
Names[(Int32)
Tables
.XAssembly] = "Assembly";
142
Names[(Int32)
Tables
.XEvent] = "Event";
143
Names[(Int32)
Tables
.XModule] = "Module";
144
Names[(Int32)
Tables
.XProperty] = "Property";
146
Names[(Int32)
Tables
.FieldPtr] = "FieldPointer";
147
Names[(Int32)
Tables
.MethodPtr] = "MethodPointer";
148
Names[(Int32)
Tables
.ParamPtr] = "ParamPointer";
149
Names[(Int32)
Tables
.EventPtr] = "EventPointer";
150
Names[(Int32)
Tables
.PropertyPtr] = "PropertyPointer";
153
for (Int32 i = 0; i <= (Int32)
Tables
.MaxTable; i++)
174
internal
Tables
[] WhichTables;
176
internal EncodingDesc(String N, int T,
Tables
[] W)
195
new
Tables
[] {
Tables
.TypeDef,
Tables
.TypeRef,
Tables
.TypeSpec }),
197
new
Tables
[] {
Tables
.FieldDef,
Tables
.ParamDef,
Tables
.XProperty }),
199
new
Tables
[] {
Tables
.MethodDef,
Tables
.FieldDef,
Tables
.TypeRef,
Tables
.TypeDef,
200
Tables
.ParamDef,
Tables
.InterfaceImpl,
Tables
.MemberRef,
Tables
.XModule,
201
Tables
.DeclSecurity,
Tables
.XProperty,
Tables
.XEvent,
Tables
.StandAloneSig,
202
Tables
.ModuleRef,
Tables
.TypeSpec,
Tables
.XAssembly,
Tables
.AssemblyRef,
203
Tables
.File,
Tables
.ExportedType,
Tables
.ManifestResource,
205
Tables
.GenericParam,
Tables
.GenericConstraint,
Tables
.GenericParam}),
207
new
Tables
[] {
Tables
.FieldDef,
Tables
.ParamDef }),
209
new
Tables
[] {
Tables
.TypeDef,
Tables
.MethodDef,
Tables
.XAssembly }),
212
new
Tables
[] {
Tables
.TypeDef,
Tables
.TypeRef,
Tables
.ModuleRef,
Tables
.MethodDef,
Tables
.TypeSpec }),
214
new
Tables
[] {
Tables
.XEvent,
Tables
.XProperty }),
216
new
Tables
[] {
Tables
.MethodDef,
Tables
.MemberRef }),
218
new
Tables
[] {
Tables
.FieldDef,
Tables
.MethodDef }),
220
new
Tables
[] {
Tables
.File,
Tables
.AssemblyRef,
Tables
.ExportedType }),
222
new
Tables
[] {
Tables
.Invalid,
Tables
.Invalid,
Tables
.MethodDef,
Tables
.MemberRef }),
224
new
Tables
[] {
Tables
.XModule,
Tables
.ModuleRef,
Tables
.AssemblyRef,
Tables
.TypeRef }),
226
new
Tables
[] {
Tables
.TypeDef,
Tables
.MethodDef })
245
NRows = new UInt32[(Int32)
Tables
.MaxTable + 1];
248
for (int Table = 0; Table <= (int)
Tables
.MaxTable; Table++, VBit <<= 1)
268
tableAt = new UInt32[(Int32)
Tables
.MaxTable + 1];
271
for (int Table = 0; Table <= (int)
Tables
.MaxTable; Table++, VBit <<= 1)
286
foreach (
Tables
Table in E.WhichTables)
288
if (Table ==
Tables
.Invalid) continue;
295
UInt32 RowSize(
Tables
Table)
302
lengths = new UInt32[(Int32)
Tables
.MaxTable + 1];
303
lengths[(Int32)
Tables
.XAssembly] = 4 + 4 * 2 + 4 + blobIndex + 2 * stringIndex;
304
lengths[(Int32)
Tables
.AssemblyOS] = 4 * 3;
305
lengths[(Int32)
Tables
.AssemblyProcessor] = 4;
306
lengths[(Int32)
Tables
.AssemblyRef] = 4 * 2 + 4 + 2 * blobIndex + 2 * stringIndex;
307
lengths[(Int32)
Tables
.AssemblyRefOS] = 3 * 4 + RowSize(
Tables
.AssemblyRef);
308
lengths[(Int32)
Tables
.AssemblyRefProcessor] = 4 + RowSize(
Tables
.AssemblyRef);
309
lengths[(Int32)
Tables
.ClassLayout] = 2 + 4 + RowSize(
Tables
.TypeDef);
310
lengths[(Int32)
Tables
.Constant] = 1 + 1 + MetadataTokenSize(Encodings.HasConstant) + blobIndex;
311
lengths[(Int32)
Tables
.CustomAttribute] = MetadataTokenSize(Encodings.HasCustomAttribute) +
313
lengths[(Int32)
Tables
.DeclSecurity] = 2 + MetadataTokenSize(Encodings.HasDeclSecurity) + blobIndex;
314
lengths[(Int32)
Tables
.EventMap] = RowSize(
Tables
.TypeDef) + RowSize(
Tables
.XEvent);
315
lengths[(Int32)
Tables
.XEvent] = 2 + stringIndex + MetadataTokenSize(Encodings.TypeDefOrRef);
316
lengths[(Int32)
Tables
.ExportedType] = 4 + 4 + stringIndex*2 + MetadataTokenSize(Encodings.Implementation);
317
lengths[(Int32)
Tables
.FieldDef] = 2 + stringIndex + blobIndex;
318
lengths[(Int32)
Tables
.FieldLayout] = 4 + RowSize(
Tables
.FieldDef);
319
lengths[(Int32)
Tables
.FieldMarshal] = MetadataTokenSize(Encodings.HasFieldMarshall) + blobIndex;
320
lengths[(Int32)
Tables
.FieldRVA] = 4 + RowSize(
Tables
.FieldDef);
321
lengths[(Int32)
Tables
.File] = 4 + stringIndex + blobIndex;
322
lengths[(Int32)
Tables
.GenericParam] = 2 + 2 + MetadataTokenSize(Encodings.TypeOrMethodDef) + stringIndex;
323
lengths[(Int32)
Tables
.GenericMethod] = MetadataTokenSize(Encodings.MethodDefOrRef) + blobIndex;
324
lengths[(Int32)
Tables
.GenericConstraint] = RowSize(
Tables
.GenericParam) + MetadataTokenSize(Encodings.TypeDefOrRef);
325
lengths[(Int32)
Tables
.ImplMap] = 2 + MetadataTokenSize(Encodings.MemberForwarded) + stringIndex +
326
RowSize(
Tables
.ModuleRef);
327
lengths[(Int32)
Tables
.InterfaceImpl] = RowSize(
Tables
.TypeDef) + MetadataTokenSize(Encodings.TypeDefOrRef);
328
lengths[(Int32)
Tables
.ManifestResource] = 4 + 4 + stringIndex + MetadataTokenSize(Encodings.Implementation);
329
lengths[(Int32)
Tables
.MemberRef] = MetadataTokenSize(Encodings.MemberRefParent) + stringIndex +
331
lengths[(Int32)
Tables
.MethodDef] = 4 + 2 + 2 + stringIndex +
332
blobIndex + RowSize(
Tables
.ParamDef);
333
lengths[(Int32)
Tables
.MethodImpl] = RowSize(
Tables
.TypeDef) + MetadataTokenSize(Encodings.MethodDefOrRef) * 2;
334
lengths[(Int32)
Tables
.MethodSemantics] = 2 + RowSize(
Tables
.MethodDef) + MetadataTokenSize(Encodings.HasSemantics);
335
lengths[(Int32)
Tables
.XModule] = 2 + stringIndex + GUIDIndex * 3;
336
lengths[(Int32)
Tables
.ModuleRef] = stringIndex;
337
lengths[(Int32)
Tables
.NestedClass] = RowSize(
Tables
.TypeDef) * 2;
338
lengths[(Int32)
Tables
.ParamDef] = 2 + 2 + stringIndex;
339
lengths[(Int32)
Tables
.XProperty] = 2 + stringIndex + blobIndex;
340
lengths[(Int32)
Tables
.PropertyMap] = RowSize(
Tables
.TypeDef) + RowSize(
Tables
.XProperty);
341
lengths[(Int32)
Tables
.StandAloneSig] = blobIndex;
342
lengths[(Int32)
Tables
.TypeDef] = 4 + stringIndex*2 + MetadataTokenSize(Encodings.TypeDefOrRef) +
343
RowSize(
Tables
.FieldDef) + RowSize(
Tables
.MethodDef);
344
lengths[(Int32)
Tables
.TypeRef] = MetadataTokenSize(Encodings.ResolutionScope) + stringIndex*2;
345
lengths[(Int32)
Tables
.TypeSpec] = blobIndex;
347
lengths[(Int32)
Tables
.FieldPtr] = RowSize(
Tables
.FieldDef);
348
lengths[(Int32)
Tables
.MethodPtr] = RowSize(
Tables
.MethodDef);
349
lengths[(Int32)
Tables
.ParamPtr] = RowSize(
Tables
.ParamDef);
350
lengths[(Int32)
Tables
.EventPtr] = RowSize(
Tables
.XEvent);
351
lengths[(Int32)
Tables
.PropertyPtr] = RowSize(
Tables
.XProperty);
357
internal void SeekToRowOfTable(
Tables
T, UInt32 Row)
462
internal UInt32 ReadRowIndex(
Tables
T)
470
internal UInt32 RowsInTable(
Tables
T)
500
Tables
[] Ts = Desc.WhichTables;
504
if (Result.Table ==
Tables
.Invalid)
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (1)
349
MetaData.SeekToRowOfTable(MDTables.
Tables
.XAssembly, 0U);
System\Addin\MiniReflection\MiniAssembly.cs (8)
77
for(uint i=0; i<metaData.RowsInTable(MDTables.
Tables
.File); i++)
79
metaData.SeekToRowOfTable(MDTables.
Tables
.File, i);
107
uint numTypeDefs = mdScope.RowsInTable(MDTables.
Tables
.TypeDef);
109
mdScope.SeekToRowOfTable(MDTables.
Tables
.TypeDef, i);
117
return new MetadataToken(MDTables.
Tables
.TypeDef, i + 1);
143
System.Diagnostics.Contracts.Contract.Requires(token.Table == MDTables.
Tables
.AssemblyRef);
256
System.Diagnostics.Contracts.Contract.Requires(assemblyRefB.Table == MDTables.
Tables
.AssemblyRef);
277
System.Diagnostics.Contracts.Contract.Requires(assemblyRef.Table == MDTables.
Tables
.AssemblyRef);
System\Addin\MiniReflection\MiniModule.cs (7)
98
uint rowsGeneric = _peFile.MetaData.RowsInTable(MDTables.
Tables
.GenericParam);
101
_peFile.MetaData.SeekToRowOfTable(MDTables.
Tables
.GenericParam, i);
134
uint numRows = MetaData.RowsInTable(MDTables.
Tables
.CustomAttribute);
137
MetaData.SeekToRowOfTable(MDTables.
Tables
.CustomAttribute, i);
149
if (caType.Table != MDTables.
Tables
.MemberRef)
153
System.Diagnostics.Contracts.Contract.Assert(caType.Table == MDTables.
Tables
.MethodDef);
171
case MDTables.
Tables
.TypeDef:
System\Addin\MiniReflection\TypeInfo.cs (39)
79
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.
Tables
.TypeDef);
98
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.
Tables
.TypeDef);
113
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.
Tables
.TypeDef);
137
System.Diagnostics.Contracts.Contract.Requires(typeRefToken.Table == MDTables.
Tables
.TypeRef);
442
if (token.Table == MDTables.
Tables
.TypeRef)
447
else if (token.Table == MDTables.
Tables
.TypeDef)
480
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.
Tables
.TypeDef);
496
uint firstMemberIndex = MetaData.ReadRowIndex(MDTables.
Tables
.FieldDef); // Field list
497
uint firstMethodIndex = MetaData.ReadRowIndex(MDTables.
Tables
.MethodDef); // Method list
501
if (_mdToken.Index == MetaData.RowsInTable(MDTables.
Tables
.TypeDef))
503
lastMethodIndex = MetaData.RowsInTable(MDTables.
Tables
.MethodDef);
507
MetaData.SeekToRowOfTable(MDTables.
Tables
.TypeDef, _mdToken.Index); // Seek to next type (not off by 1!)
512
MetaData.ReadRowIndex(MDTables.
Tables
.FieldDef); // field list;
513
uint firstMethodOfNextType = MetaData.ReadRowIndex(MDTables.
Tables
.MethodDef); // method list
520
MetadataToken method = new MetadataToken(MDTables.
Tables
.MethodDef, i);
678
MDTables.
Tables
[] mapToTable = new MDTables.
Tables
[]{MDTables.
Tables
.TypeDef, MDTables.
Tables
.TypeRef, MDTables.
Tables
.TypeSpec};
745
if (_mdToken.Table == MDTables.
Tables
.TypeRef)
752
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.
Tables
.TypeDef);
760
System.Diagnostics.Contracts.Contract.Requires(typeDefToken.Table == MDTables.
Tables
.TypeDef);
768
uint numRows = mdScope.RowsInTable(MDTables.
Tables
.InterfaceImpl);
771
mdScope.SeekToRowOfTable(MDTables.
Tables
.InterfaceImpl, i);
772
uint typeDefRow = mdScope.ReadRowIndex(MDTables.
Tables
.TypeDef);
783
case MDTables.
Tables
.TypeRef:
797
case MDTables.
Tables
.TypeDef:
814
case MDTables.
Tables
.TypeSpec:
837
System.Diagnostics.Contracts.Contract.Requires(typeRef.Table == MDTables.
Tables
.TypeRef);
846
System.Diagnostics.Contracts.Contract.Assert(resolutionScope.Table == MDTables.
Tables
.AssemblyRef);
884
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.
Tables
.TypeDef);
891
uint numRows = mdScope.RowsInTable(MDTables.
Tables
.InterfaceImpl);
896
mdScope.SeekToRowOfTable(MDTables.
Tables
.InterfaceImpl, i);
897
uint typeDefRow = mdScope.ReadRowIndex(MDTables.
Tables
.TypeDef);
955
uint numRows = metaData.RowsInTable(MDTables.
Tables
.CustomAttribute);
958
metaData.SeekToRowOfTable(MDTables.
Tables
.CustomAttribute, i);
972
if (caType.Table != MDTables.
Tables
.MemberRef)
976
System.Diagnostics.Contracts.Contract.Assert(caType.Table == MDTables.
Tables
.MethodDef);