Skip to content

Comments

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

Closed
gzzi wants to merge 1 commit intoeerimoq:masterfrom
gzzi:master
Closed

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

Conversation

@gzzi
Copy link

@gzzi gzzi commented Dec 18, 2025

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
Copy link
Owner

eerimoq commented Dec 18, 2025

Please add a test and I'll merge =)

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2025

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
Copy link
Author

gzzi commented Dec 19, 2025

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