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

write: use Cow for Section::data #370

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Conversation

philipc
Copy link
Contributor

@philipc philipc commented Aug 30, 2021

@bjorn3 Will this fix #348 (comment)? You'll need to use set_section_data instead of append_section_data. The cost is that other users may need to specify 'static for the lifetime. Maybe it's worth using Cow for the section and symbol names too.

@bjorn3
Copy link
Contributor

bjorn3 commented Aug 30, 2021

Yes, I think so.

@philipc philipc merged commit 8255445 into gimli-rs:master Sep 1, 2021
@philipc philipc deleted the write-cow branch September 1, 2021 04:38
mcbegamerxx954 pushed a commit to mcbegamerxx954/object that referenced this pull request Jun 15, 2024
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