public void BuildMetadataTextMap()
{
TextMap textMap = text_map;
textMap.AddMap(TextSegment.MetadataHeader, GetMetadataHeaderLength(module.RuntimeVersion));
textMap.AddMap(TextSegment.TableHeap, metadata.table_heap.length, 4);
textMap.AddMap(TextSegment.StringHeap, metadata.string_heap.length, 4);
textMap.AddMap(TextSegment.UserStringHeap, (!metadata.user_string_heap.IsEmpty) ? metadata.user_string_heap.length : 0, 4);
textMap.AddMap(TextSegment.GuidHeap, metadata.guid_heap.length, 4);
textMap.AddMap(TextSegment.BlobHeap, (!metadata.blob_heap.IsEmpty) ? metadata.blob_heap.length : 0, 4);
textMap.AddMap(TextSegment.PdbHeap, (metadata.pdb_heap != null) ? metadata.pdb_heap.length : 0, 4);
}