Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 9, 2026

This is pretty straightforward -- add big endian variants of existing functions.

Follow-up to #20757.

I'll add float read/write functions in a follow-up PR.

Also restructure primitive definitions to have more consistent order.

I used coding agent assist to generate the repetitive parts and to refactor the code and tests.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 2955e3c into master Feb 9, 2026
23 checks passed
@JukkaL JukkaL deleted the librt-strings-read-write-3 branch February 9, 2026 15:18
JukkaL added a commit that referenced this pull request Feb 10, 2026
Support both 32-bit and 64-bit float formats, and also support little
endian and big endian (e.g. `write_f64_le`).

I think the read/write function feature set now covers all the essential
functionality. We can consider adding `u8` variants in the future,
though they can already be supported using just `append` and get item.

Follow-up to #20772.

I used coding agent assist significantly.
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