void writeHeader(RandomAccessFile raf, DataConverter dc) throws IOException {

		raf.seek(index);

		raf.write(dc.getBytes(signature));

		fileHeader.writeHeader(raf, dc);

		optionalHeader.writeHeader(raf, dc);

		SectionHeader[] sections = fileHeader.getSectionHeaders();
		for (SectionHeader section : sections) {
			section.writeHeader(raf, dc);
		}
	}
Converts a virtual address (VA) into a pointer.

@param va the virtual address
@return the pointer into binary image, 0 if not valid
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/NTHeader.java