コード例 #1
0
ファイル: Tables.cs プロジェクト: retahc/old-code
 public override void FromRawData(byte [] buff, int offs, int numRows)
 {
     for (int i = numRows; --i >= 0;)
     {
         Row row = new AssemblyRefProcessorRow(this);
         row.FromRawData(buff, offs);
         Add(row);
         offs += AssemblyRefProcessorRow.LogicalSize;
     }
 }
コード例 #2
0
ファイル: TableHeap.cs プロジェクト: djlw78/Mosa
        /// <summary>
        /// Reads the specified token.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <param name="result">The result.</param>
        public void Read(TokenTypes token, out AssemblyRefProcessorRow result)
        {
            if ((token & TokenTypes.TableMask) != TokenTypes.AssemblyRefProcessor)
            {
                throw new ArgumentException("Invalid token type for AssemblyRefProcessorRow.", "token");
            }

            using (BinaryReader reader = CreateReaderForToken(token))
            {
                result = new AssemblyRefProcessorRow(reader.ReadUInt32(), ReadIndexValue(reader, TokenTypes.AssemblyRef));
            }
        }
コード例 #3
0
 public virtual void VisitAssemblyRefProcessorRow(AssemblyRefProcessorRow row)
 {
 }
コード例 #4
0
ファイル: MetadataRoot.cs プロジェクト: djlw78/Mosa
        void IMetadataProvider.Read(TokenTypes token, out AssemblyRefProcessorRow result)
        {
            TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables];

            theap.Read(token, out result);
        }
コード例 #5
0
 public virtual void VisitAssemblyRefProcessorRow(AssemblyRefProcessorRow row)
 {
 }