Skip to content

Add option to not fill binary up to max address#52

Closed
gzzi wants to merge 1 commit into
eerimoq:masterfrom
gzzi:master
Closed

Add option to not fill binary up to max address#52
gzzi wants to merge 1 commit into
eerimoq:masterfrom
gzzi:master

Conversation

@gzzi

@gzzi gzzi commented Dec 18, 2025

Copy link
Copy Markdown

Hello,

In my scenario it make sense to not fill up to max address. The result binary is smaller and the update of our embedded device is then faster.

@eerimoq

eerimoq commented Dec 18, 2025

Copy link
Copy Markdown
Owner

Please add a test and I'll merge =)

@eerimoq

eerimoq commented Dec 18, 2025

Copy link
Copy Markdown
Owner

I guess you can remove everything from the end of the last segments end before calling as_binary() to achieve the same result. But I'm open to add the fill parameter.

@gzzi

gzzi commented Dec 19, 2025

Copy link
Copy Markdown
Author

I found another way, I can call crop before doing the as_binary

@gzzi gzzi closed this Dec 19, 2025
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