public int getPointer() {
		if (virtualAddress == 0) {
			return -1;
		}
		int ptr = ntHeader.rvaToPointer(getVirtualAddress());
		if (ptr < 0) {
			Msg.error(this, "Invalid file index for " + Integer.toHexString(getVirtualAddress()));
		}
		return ptr;
	}
Directories that are not contained inside of sections
should override this method to write their bytes into the
specified file.
@param raf        the random access file used for output
@param dc         the data converter for endianness
@param template   the original unadulterated PE
@throws IOException if an I/O error occurs
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/DataDirectory.java