internal AssemblyOs(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint, uint> row) : base(header, token, row) { PlatformId = row.Column1; MajorVersion = row.Column2; MinorVersion = row.Column3; }
internal PropertyMap(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint> row) : base(header, token, row) { var tableStream = header.GetStream <TableStream>(); _parent = new LazyValue <TypeDefinition>(() => tableStream.GetTable <TypeDefinition>()[(int)row.Column1 - 1]); }
protected override void WriteRow(WritingContext context, MetadataRow<EventAttributes, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16((ushort) row.Column1); writer.WriteIndex(TableStream.StringIndexSize, row.Column2); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.TypeDefOrRef).IndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint> row) { var writer = context.Writer; writer.WriteIndex(TableStream.GetTable(MetadataTokenType.Method).IndexSize, row.Column1); writer.WriteIndex(TableStream.BlobIndexSize, row.Column2); }
internal AssemblyRefProcessor(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint> row) : base(header, token, row) { Processor = row.Column1; _reference = new LazyValue <AssemblyReference>(() => header.GetStream <TableStream>().GetTable <AssemblyReference>()[(int)(row.Column1 - 1)]); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint> row) { var writer = context.Writer; writer.WriteIndex(TableStream.GetTable(MetadataTokenType.TypeDef).IndexSize, row.Column1); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.TypeDefOrRef).IndexSize, row.Column2); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint> row) { var writer = context.Writer; writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.HasFieldMarshal).IndexSize, row.Column1); writer.WriteIndex(TableStream.BlobIndexSize, row.Column2); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint> row) { var writer = context.Writer; writer.WriteUInt32(row.Column1); writer.WriteUInt32(row.Column2); }
internal PropertyDefinition(MetadataHeader header, MetadataToken token, MetadataRow <ushort, uint, uint> row) : base(header, token, row) { Attributes = (PropertyAttributes)row.Column1; _name = new LazyValue <string>(() => header.GetStream <StringStream>().GetStringByOffset(row.Column2)); _signature = new LazyValue <PropertySignature>(() => PropertySignature.FromReader(header, header.GetStream <BlobStream>().CreateBlobReader(row.Column3))); }
protected override void WriteRow(WritingContext context, MetadataRow <DataSegment, uint> row) { var writer = context.Writer; writer.WriteUInt32((uint)row.Column1.GetRva(context.Assembly)); writer.WriteIndex(TableStream.GetTable(MetadataTokenType.Field).IndexSize, row.Column2); }
protected override void WriteRow(WritingContext context, MetadataRow <ParameterAttributes, ushort, uint> row) { var writer = context.Writer; writer.WriteUInt16((ushort)row.Column1); writer.WriteUInt16(row.Column2); writer.WriteIndex(TableStream.StringIndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint> row) { var writer = context.Writer; var definitionTable = TableStream.GetTable(MetadataTokenType.TypeDef); writer.WriteIndex(definitionTable.IndexSize, row.Column1); writer.WriteIndex(definitionTable.IndexSize, row.Column2); }
internal FileDefinition(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint, uint> row) : base(header, token, row) { Attributes = (FileAttributes)row.Column1; _name = new LazyValue <string>(() => header.GetStream <StringStream>().GetStringByOffset(row.Column2)); _hashValue = new LazyValue <DataBlobSignature>(() => DataBlobSignature.FromReader(header.GetStream <BlobStream>().CreateBlobReader(row.Column3))); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint, uint> row) { var writer = context.Writer; writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.HasCustomAttribute).IndexSize, row.Column1); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.CustomAttributeType).IndexSize, row.Column2); writer.WriteIndex(TableStream.BlobIndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <MethodSemanticsAttributes, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16((ushort)row.Column1); writer.WriteIndex(TableStream.GetTable(MetadataTokenType.Method).IndexSize, row.Column2); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.HasSemantics).IndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, uint, uint> row) { var writer = context.Writer; writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.MemberRefParent).IndexSize, row.Column1); writer.WriteIndex(TableStream.StringIndexSize, row.Column2); writer.WriteIndex(TableStream.BlobIndexSize, row.Column3); }
internal AssemblyRefOs(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint, uint, uint> row) : base(header, token, row) { PlatformId = row.Column1; MajorVersion = row.Column2; MinorVersion = row.Column3; Reference = header.GetStream <TableStream>().GetTable <AssemblyReference>()[(int)(row.Column4 - 1)]; }
protected override void WriteRow(WritingContext context, MetadataRow <SecurityAction, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16((ushort)row.Column1); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.HasDeclSecurity).IndexSize, row.Column2); writer.WriteIndex(TableStream.BlobIndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <FileAttributes, uint, uint> row) { var writer = context.Writer; writer.WriteUInt32((uint)row.Column1); writer.WriteIndex(TableStream.StringIndexSize, row.Column2); writer.WriteIndex(TableStream.BlobIndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <ushort, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16(row.Column1); writer.WriteUInt32(row.Column2); writer.WriteIndex(TableStream.GetTable(MetadataTokenType.TypeDef).IndexSize, row.Column3); }
protected override void WriteRow(WritingContext context, MetadataRow <ushort, GenericParameterAttributes, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16(row.Column1); writer.WriteUInt16((ushort)row.Column2); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.TypeOrMethodDef).IndexSize, row.Column3); writer.WriteIndex(TableStream.StringIndexSize, row.Column4); }
protected override void WriteRow(WritingContext context, MetadataRow <ImplementationMapAttributes, uint, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16((ushort)row.Column1); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.MemberForwarded).IndexSize, row.Column2); writer.WriteIndex(TableStream.StringIndexSize, row.Column3); writer.WriteIndex(TableStream.GetTable(MetadataTokenType.ModuleRef).IndexSize, row.Column4); }
internal FieldLayout(MetadataHeader header, MetadataToken token, MetadataRow <uint, uint> row) : base(header, token, row) { Offset = row.Column1; var tableStream = header.GetStream <TableStream>(); _field = new LazyValue <FieldDefinition>(() => tableStream.GetTable <FieldDefinition>()[(int)(row.Column2 - 1)]); }
protected override void WriteRow(WritingContext context, MetadataRow <uint, ManifestResourceAttributes, uint, uint> row) { var writer = context.Writer; writer.WriteUInt32(row.Column1); writer.WriteUInt32((uint)row.Column2); writer.WriteIndex(TableStream.StringIndexSize, row.Column3); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.Implementation).IndexSize, row.Column4); }
internal ParameterDefinition(MetadataHeader header, MetadataToken token, MetadataRow <ushort, ushort, uint> row) : base(header, token, row) { var stringStream = header.GetStream <StringStream>(); Attributes = (ParameterAttributes)row.Column1; Sequence = row.Column2; _name = new LazyValue <string>(() => stringStream.GetStringByOffset(row.Column3)); }
protected override void WriteRow(WritingContext context, MetadataRow <ElementType, byte, uint, uint> row) { var writer = context.Writer; writer.WriteByte((byte)row.Column1); writer.WriteByte(row.Column2); writer.WriteIndex(TableStream.GetIndexEncoder(CodedIndex.HasConstant).IndexSize, row.Column3); writer.WriteIndex(TableStream.BlobIndexSize, row.Column4); }
internal FieldDefinition(MetadataHeader header, MetadataToken token, MetadataRow <ushort, uint, uint> row) : base(header, token, row) { var stringStream = header.GetStream <StringStream>(); Attributes = (FieldAttributes)row.Column1; _name = new LazyValue <string>(() => stringStream.GetStringByOffset(row.Column2)); _signature = new LazyValue <FieldSignature>(() => FieldSignature.FromReader(header, header.GetStream <BlobStream>().CreateBlobReader(row.Column3))); }
protected override void WriteRow(WritingContext context, MetadataRow <ushort, uint, uint, uint, uint> row) { var writer = context.Writer; writer.WriteUInt16(row.Column1); writer.WriteIndex(TableStream.StringIndexSize, row.Column2); writer.WriteIndex(TableStream.GuidIndexSize, row.Column3); writer.WriteIndex(TableStream.GuidIndexSize, row.Column4); writer.WriteIndex(TableStream.GuidIndexSize, row.Column5); }
public ClassLayout(MetadataHeader header, MetadataToken token, MetadataRow <ushort, uint, uint> row) : base(header, token, row) { PackingSize = row.Column1; ClassSize = row.Column2; var tableStream = header.GetStream <TableStream>(); _parent = new LazyValue <TypeDefinition>(() => tableStream.GetTable <TypeDefinition>()[(int)(row.Column3 - 1)]); }
protected override void WriteRow(WritingContext context, MetadataRow <FileSegment, MethodImplAttributes, MethodAttributes, uint, uint, uint> row) { var writer = context.Writer; writer.WriteUInt32((uint)(row.Column1 != null ? row.Column1.GetRva(context.Assembly) : 0)); writer.WriteUInt16((ushort)row.Column2); writer.WriteUInt16((ushort)row.Column3); writer.WriteIndex(TableStream.StringIndexSize, row.Column4); writer.WriteIndex(TableStream.BlobIndexSize, row.Column5); writer.WriteIndex(TableStream.GetTable(MetadataTokenType.Param).IndexSize, row.Column6); }