1 write to metadata
Mono.Cecil (1)
Mono.Cecil.PE\ImageWriter.cs (1)
60
this.
metadata
= metadata;
35 references to metadata
Mono.Cecil (35)
Mono.Cecil.PE\ImageWriter.cs (35)
74
var symbol_writer =
metadata
.symbol_writer;
196
WriteUInt32 (
metadata
.timestamp);
440
WriteUInt32 (
metadata
.entry_point.ToUInt32 ());
451
WriteBuffer (
metadata
.code);
456
WriteBuffer (
metadata
.resources);
460
if (
metadata
.data.length > 0) {
462
WriteBuffer (
metadata
.data);
526
+ (
metadata
.user_string_heap.IsEmpty ? 0 : 1) // #US
527
+ (
metadata
.guid_heap.IsEmpty ? 0 : 1) // GUID
528
+ (
metadata
.blob_heap.IsEmpty ? 0 : 1)
529
+ (
metadata
.pdb_heap == null ? 0 : 1)); // #Blob
570
WriteHeap (TextSegment.TableHeap,
metadata
.table_heap);
571
WriteHeap (TextSegment.StringHeap,
metadata
.string_heap);
572
WriteHeap (TextSegment.UserStringHeap,
metadata
.user_string_heap);
573
WriteHeap (TextSegment.GuidHeap,
metadata
.guid_heap);
574
WriteHeap (TextSegment.BlobHeap,
metadata
.blob_heap);
575
WriteHeap (TextSegment.PdbHeap,
metadata
.pdb_heap);
699
map.AddMap (TextSegment.Code,
metadata
.code.length, !pe64 ? 4 : 16);
700
map.AddMap (TextSegment.Resources,
metadata
.resources.length, 8);
701
map.AddMap (TextSegment.Data,
metadata
.data.length,
metadata
.data.BufferAlign);
702
if (
metadata
.data.length > 0)
703
metadata
.table_heap.FixupData (map.GetRVA (TextSegment.Data));
758
map.AddMap (TextSegment.TableHeap,
metadata
.table_heap.length, 4);
759
map.AddMap (TextSegment.StringHeap,
metadata
.string_heap.length, 4);
760
map.AddMap (TextSegment.UserStringHeap,
metadata
.user_string_heap.IsEmpty ? 0 :
metadata
.user_string_heap.length, 4);
761
map.AddMap (TextSegment.GuidHeap,
metadata
.guid_heap.length, 4);
762
map.AddMap (TextSegment.BlobHeap,
metadata
.blob_heap.IsEmpty ? 0 :
metadata
.blob_heap.length, 4);
763
map.AddMap (TextSegment.PdbHeap,
metadata
.pdb_heap == null ? 0 :
metadata
.pdb_heap.length, 4);
786
+ (
metadata
.user_string_heap.IsEmpty ? 0 : 12)
790
+ (
metadata
.blob_heap.IsEmpty ? 0 : 16)
792
+ (
metadata
.pdb_heap == null ? 0 : 16);