Skip to content

Conversation

@kiwidoggie
Copy link

This seems to work, I really need this support for a different project. So I got it working for my needs.

Let me know if there's anything in particular that doesn't look right, I was kinda going off of guessing/referencing other classes.

@kiwidoggie
Copy link
Author

May be of use for #36

@xoofx
Copy link
Owner

xoofx commented Jan 13, 2026

Sorry to come back only now. Is there a way to have a simple test added for this? (We do have some binary files in https://github.com/xoofx/LibObjectFile/tree/master/src/LibObjectFile.Tests/Elf for instance)

@kiwidoggie
Copy link
Author

Yep, I can get some added in the upcoming weeks

}

internal bool TryGetString(uint index, out string text)
public bool TryGetString(uint index, out string text)
Copy link
Owner

Choose a reason for hiding this comment

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

Why is it changed to public?

Copy link
Author

Choose a reason for hiding this comment

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

I needed that for a different project because there was no way to get a string via index otherwise (or at least I didn't see it) I can revert it when I submit the tests and other fixes I've found along the way =]

@kiwidoggie kiwidoggie marked this pull request as draft January 27, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants