1 write to lengths
System.AddIn (1)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (1)
302lengths = new UInt32[(Int32)Tables.MaxTable + 1];
46 references to lengths
System.AddIn (46)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (46)
275Offset += lengths[Table] * NRows[Table]; 276if (((Valid & VBit) != 0) && (NRows[Table] != 0) && (lengths[Table] == 0)) 303lengths[(Int32)Tables.XAssembly] = 4 + 4 * 2 + 4 + blobIndex + 2 * stringIndex; 304lengths[(Int32)Tables.AssemblyOS] = 4 * 3; 305lengths[(Int32)Tables.AssemblyProcessor] = 4; 306lengths[(Int32)Tables.AssemblyRef] = 4 * 2 + 4 + 2 * blobIndex + 2 * stringIndex; 307lengths[(Int32)Tables.AssemblyRefOS] = 3 * 4 + RowSize(Tables.AssemblyRef); 308lengths[(Int32)Tables.AssemblyRefProcessor] = 4 + RowSize(Tables.AssemblyRef); 309lengths[(Int32)Tables.ClassLayout] = 2 + 4 + RowSize(Tables.TypeDef); 310lengths[(Int32)Tables.Constant] = 1 + 1 + MetadataTokenSize(Encodings.HasConstant) + blobIndex; 311lengths[(Int32)Tables.CustomAttribute] = MetadataTokenSize(Encodings.HasCustomAttribute) + 313lengths[(Int32)Tables.DeclSecurity] = 2 + MetadataTokenSize(Encodings.HasDeclSecurity) + blobIndex; 314lengths[(Int32)Tables.EventMap] = RowSize(Tables.TypeDef) + RowSize(Tables.XEvent); 315lengths[(Int32)Tables.XEvent] = 2 + stringIndex + MetadataTokenSize(Encodings.TypeDefOrRef); 316lengths[(Int32)Tables.ExportedType] = 4 + 4 + stringIndex*2 + MetadataTokenSize(Encodings.Implementation); 317lengths[(Int32)Tables.FieldDef] = 2 + stringIndex + blobIndex; 318lengths[(Int32)Tables.FieldLayout] = 4 + RowSize(Tables.FieldDef); 319lengths[(Int32)Tables.FieldMarshal] = MetadataTokenSize(Encodings.HasFieldMarshall) + blobIndex; 320lengths[(Int32)Tables.FieldRVA] = 4 + RowSize(Tables.FieldDef); 321lengths[(Int32)Tables.File] = 4 + stringIndex + blobIndex; 322lengths[(Int32)Tables.GenericParam] = 2 + 2 + MetadataTokenSize(Encodings.TypeOrMethodDef) + stringIndex; 323lengths[(Int32)Tables.GenericMethod] = MetadataTokenSize(Encodings.MethodDefOrRef) + blobIndex; 324lengths[(Int32)Tables.GenericConstraint] = RowSize(Tables.GenericParam) + MetadataTokenSize(Encodings.TypeDefOrRef); 325lengths[(Int32)Tables.ImplMap] = 2 + MetadataTokenSize(Encodings.MemberForwarded) + stringIndex + 327lengths[(Int32)Tables.InterfaceImpl] = RowSize(Tables.TypeDef) + MetadataTokenSize(Encodings.TypeDefOrRef); 328lengths[(Int32)Tables.ManifestResource] = 4 + 4 + stringIndex + MetadataTokenSize(Encodings.Implementation); 329lengths[(Int32)Tables.MemberRef] = MetadataTokenSize(Encodings.MemberRefParent) + stringIndex + 331lengths[(Int32)Tables.MethodDef] = 4 + 2 + 2 + stringIndex + 333lengths[(Int32)Tables.MethodImpl] = RowSize(Tables.TypeDef) + MetadataTokenSize(Encodings.MethodDefOrRef) * 2; 334lengths[(Int32)Tables.MethodSemantics] = 2 + RowSize(Tables.MethodDef) + MetadataTokenSize(Encodings.HasSemantics); 335lengths[(Int32)Tables.XModule] = 2 + stringIndex + GUIDIndex * 3; 336lengths[(Int32)Tables.ModuleRef] = stringIndex; 337lengths[(Int32)Tables.NestedClass] = RowSize(Tables.TypeDef) * 2; 338lengths[(Int32)Tables.ParamDef] = 2 + 2 + stringIndex; 339lengths[(Int32)Tables.XProperty] = 2 + stringIndex + blobIndex; 340lengths[(Int32)Tables.PropertyMap] = RowSize(Tables.TypeDef) + RowSize(Tables.XProperty); 341lengths[(Int32)Tables.StandAloneSig] = blobIndex; 342lengths[(Int32)Tables.TypeDef] = 4 + stringIndex*2 + MetadataTokenSize(Encodings.TypeDefOrRef) + 344lengths[(Int32)Tables.TypeRef] = MetadataTokenSize(Encodings.ResolutionScope) + stringIndex*2; 345lengths[(Int32)Tables.TypeSpec] = blobIndex; 347 lengths[(Int32)Tables.FieldPtr] = RowSize(Tables.FieldDef); 348lengths[(Int32)Tables.MethodPtr] = RowSize(Tables.MethodDef); 349lengths[(Int32)Tables.ParamPtr] = RowSize(Tables.ParamDef); 350lengths[(Int32)Tables.EventPtr] = RowSize(Tables.XEvent); 351lengths[(Int32)Tables.PropertyPtr] = RowSize(Tables.XProperty); 363B.BaseStream.Seek(tableAt[(Int32)T]+Row*lengths[(Int32)T], SeekOrigin.Begin);