Skip to content

Conversation

@dolio
Copy link
Contributor

@dolio dolio commented Jan 9, 2026

This PR adds builtin replacements for various Bytes.read functions as requested in #6100.

I also took the opportunity to switch to the dedicated endian-fixing functions (instead of manual shift-and-or on bytes) for the assorted decodeNat64be like builtins, because I'd built the infrastructure for the replacements.

Pretty straight forward once I decided on a way to do the indexing. I'm not sure it's the absolutely fastest way to handle things, but every other idea I had for dealing with values that span multiple chunks was a lot more complicated.

Copy link
Member

@pchiusano pchiusano left a comment

Choose a reason for hiding this comment

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

Great!

Do all the existing tests in base pass with this?

@dolio
Copy link
Contributor Author

dolio commented Jan 9, 2026

Base tests pass.

@pchiusano pchiusano merged commit 35880fc into trunk Jan 11, 2026
31 checks passed
@pchiusano pchiusano deleted the topic/bytes-read branch January 11, 2026 22:16
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.

3 participants