Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Memory class #369

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Rework Memory class #369

merged 1 commit into from
Jul 7, 2023

Conversation

kevinferrare
Copy link
Contributor

Remove Get / Set methods, use indexers everywhere.
Make indexers depend on IByteReaderWriter instead of Memory.
Create a new IIndexed interface to represent Indexer 8 / 16 / 32 holders.

Motivation: to be able to use a byte array as IIndexed for memory dumps.

…e. Make indexers depend on IByteReaderWriter instead of memory and create a new interface to represent Indexer 8 / 16 / 32 holders which is IIndexed
@maximilien-noal maximilien-noal added reverse engineering Related to reverse enginneering (features, APIs, ...) refactoring Involves refactoring existing code code generation Related to generation of low level C# overrides of ASM code labels Jul 7, 2023
Copy link
Member

@maximilien-noal maximilien-noal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every line is fine. This streamlines the memory accesses a lot !

@kevinferrare kevinferrare merged commit e443f38 into master Jul 7, 2023
5 checks passed
@maximilien-noal maximilien-noal deleted the memory_indexer_rework branch July 7, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code generation Related to generation of low level C# overrides of ASM code refactoring Involves refactoring existing code reverse engineering Related to reverse enginneering (features, APIs, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants