🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Add some better implementations for some bytes reading/decoding functions - #6104

Merged
pchiusano merged 5 commits into
trunkfrom
topic/bytes-read
Jan 11, 2026
Merged

Add some better implementations for some bytes reading/decoding functions#6104
pchiusano merged 5 commits into
trunkfrom
topic/bytes-read

Conversation

@dolio

@dolio dolio commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

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.

@pchiusano pchiusano left a comment

Copy link
Copy Markdown
Member

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

dolio commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

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