示例#1
0
 public TypeSpecRowExt(IMetadataProvider metadata, TypeSpecRow row)
     : base(metadata)
 {
     this.row = row;
 }
示例#2
0
 void IMetadataProvider.Read(TokenTypes token, out TypeSpecRow result)
 {
     TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables];
     theap.Read(token, out result);
 }
示例#3
0
文件: TableHeap.cs 项目: hj1980/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 TypeSpecRow result)
        {
            if ((token & TokenTypes.TableMask) != TokenTypes.TypeSpec)
                throw new ArgumentException ("Invalid token type for TypeSpecRow.", "token");

            using (BinaryReader reader = CreateReaderForToken (token))
            {
                result = new TypeSpecRow (ReadIndexValue (reader, IndexType.BlobHeap));
            }
        }