Skip to content

Provide a tags::ByteOrder public API#307

Merged
197g merged 5 commits intomainfrom
public-byte-order
Nov 5, 2025
Merged

Provide a tags::ByteOrder public API#307
197g merged 5 commits intomainfrom
public-byte-order

Conversation

@197g
Copy link
Member

@197g 197g commented Nov 3, 2025

While we already provide a byte order for the decoder, there was no real use for this struct and information other than hand-coded loops. Modifying the byte order of byte-encoded values is used internally but the raw reader interfaces may require it to be handled by downstream code. This provides a basic interface for doing so.

This moves the struct to tags, exposing a public export in decoder instead (turns out, we never exported the struct, so no need for this compatibility). Overall, de-emphasize the role of EndianReader since any bulk operation is much more efficient than the one-by-one byte order correct that it provides. I want to get rid of it at some point.

@197g 197g force-pushed the public-byte-order branch from 612eed0 to d294de4 Compare November 3, 2025 19:31
@197g 197g force-pushed the public-byte-order branch from d294de4 to 99b3c03 Compare November 4, 2025 11:55
@197g 197g merged commit 34e35fb into main Nov 5, 2025
15 checks passed
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