Skip to content

Expose methods to aid in converting address types #173

@ghost

Description

I think most people working with this library are likely to need to convert between file offsets, relative virtual address and virtual addresses. Whilst these can be computed manually using the information present in the headers, due to how often these conversions are needed I think it would a good idea to expose methods to do this for consumers of the library.

Proposed methods

public uint RvaToFileOffset(uint rva);

public uint VaToRva(uint va);

public uint VaToRva(ulong va);

Would be happy to do this as a pull request should you agree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions