virtualMemory

open override fun virtualMemory(): DataAccessor(source)

Returns a DataAccessor that can be used to read from the PE file's virtual memory.

This function provides access to the PE file's memory as it would be laid out when loaded by the OS. It allows reading from both the header and all sections at their virtual addresses.

Note: This implementation does not consider whether sections would actually be loaded in memory during PE loading. Some sections may not be loaded due to their characteristics (e.g., IMAGE_SCN_MEM_DISCARDABLE), but this function returns data from all sections as if they were loaded.

Return

a DataAccessor implementation backed by this PE file's virtual memory