public override void VisitConstantRow(ConstantRow row)
 {
     row.Type   = (Mono.Cecil.Metadata.ElementType)m_binaryReader.ReadUInt16();
     row.Parent = Utilities.GetMetadataToken(CodedIndex.HasConstant,
                                             ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasConstant)));
     row.Value = ReadByIndexSize(m_blobHeapIdxSz);
 }
        public ConstantRow CreateConstantRow(ElementType _type, MetadataToken _parent, uint _value)
        {
            ConstantRow row = new ConstantRow();

            row.Type   = _type;
            row.Parent = _parent;
            row.Value  = _value;
            return(row);
        }
Пример #3
0
 public override void VisitConstantRow(ConstantRow row)
 {
     m_binaryWriter.Write ((ushort) row.Type);
     WriteMetadataToken (row.Parent, CodedIndex.HasConstant);
     WriteBlobPointer (row.Value);
 }
Пример #4
0
 public ConstantRow CreateConstantRow(ElementType _type, MetadataToken _parent, uint _value)
 {
     ConstantRow row = new ConstantRow ();
     row.Type = _type;
     row.Parent = _parent;
     row.Value = _value;
     return row;
 }
 public override void VisitConstantRow(ConstantRow row)
 {
     m_binaryWriter.Write((ushort)row.Type);
     WriteMetadataToken(row.Parent, CodedIndex.HasConstant);
     WriteBlobPointer(row.Value);
 }
Пример #6
0
 public override void VisitConstantRow(ConstantRow row)
 {
     row.Type = (Mono.Cecil.Metadata.ElementType) m_binaryReader.ReadUInt16 ();
     row.Parent = Utilities.GetMetadataToken (CodedIndex.HasConstant,
         ReadByIndexSize (GetCodedIndexSize (CodedIndex.HasConstant)));
     row.Value = ReadByIndexSize (m_blobHeapIdxSz);
 }