Skip to content

Configurable pointer-sizes #20

Description

@albertz

One other issue I've had that I'm not sure worth writing whole issue about, seems pointer-sizes are always handled as host-size with this, 64-bit python will read any pointers parsed from the data as 64-bit pointers, would it be possible to have some option to change the pointer size regardless of host size? (eg. for structs meant for PSX all pointers would be 32-bit)

Seems pointers get lowered to ctypes ctypes.POINTER(t)/ctypes.c_void_p which always use host size, maybe there could be some option to use c_uint32/c_uint64 if it's set?

Originally posted by @emoose in #19

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