Mono.Cecil.PE.ImageWriter.BuildMetadataTextMap C# (CSharp) Method

BuildMetadataTextMap() public method

public BuildMetadataTextMap ( ) : void
return void
        public void BuildMetadataTextMap()
        {
            var map = text_map;

            map.AddMap (TextSegment.MetadataHeader, GetMetadataHeaderLength (module.RuntimeVersion));
            map.AddMap (TextSegment.TableHeap, metadata.table_heap.length, 4);
            map.AddMap (TextSegment.StringHeap, metadata.string_heap.length, 4);
            map.AddMap (TextSegment.UserStringHeap, metadata.user_string_heap.IsEmpty ? 0 : metadata.user_string_heap.length, 4);
            map.AddMap (TextSegment.GuidHeap, metadata.guid_heap.length, 4);
            map.AddMap (TextSegment.BlobHeap, metadata.blob_heap.IsEmpty ? 0 : metadata.blob_heap.length, 4);
            map.AddMap (TextSegment.PdbHeap, metadata.pdb_heap == null ? 0 : metadata.pdb_heap.length, 4);
        }