Esempio n. 1
0
        /// <summary>
        /// Writes the impl map table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteImplMapTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            ImplMapRow row;

            WriteTable(TokenTypes.ImplMap, metadataSource, token =>
            {
                metadataSource.Read(token, out row);

                metadataWriter.Write((ushort)row.MappingFlags);
                metadataWriter.WriteMemberForwardedIndex(row.MemberForwardedTableIdx);
                metadataWriter.Write(row.ImportNameStringIdx);
                metadataWriter.Write(row.ImportScopeTableIdx);
            });
        }
        /// <summary>
        /// Writes the impl map table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteImplMapTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            ImplMapRow row;

            WriteTable(TokenTypes.ImplMap, metadataSource, token =>
            {
                metadataSource.Read(token, out row);

                metadataWriter.Write((ushort)row.MappingFlags);
                metadataWriter.WriteMemberForwardedIndex(row.MemberForwardedTableIdx);
                metadataWriter.Write(row.ImportNameStringIdx);
                metadataWriter.Write(row.ImportScopeTableIdx);
            });
        }