Skip to content

Conversation

@georges-berenger
Copy link
Contributor

Summary:
All the systems vrs supports are little endian, and there are many other little endian dependencies all over the place that would be really difficult to remove. Therefore, we should not pretend that vrs could easily be made to work on a little endian system and the LittleEndian class should be removed. This class also makes debugging more painful, as the values are all hidden in containers.

So everywhere LittleEndian<T> variableName is used, we replace it with a simple T variableName, then fix all the places variableName is used with direct manipulation of the member variable without going through any getter or setter. By adding operators in previous diff, we reduced the number of places where we still use getters to a very small number.

LittleEndian used to default init its value, so we need to carefully init these variables to avoid introducing bugs.

Differential Revision: D83631395

Summary:
All the systems vrs supports are little endian, and there are many other little endian dependencies all over the place that would be really difficult to remove. Therefore, we should not pretend that vrs could easily be made to work on a little endian system and the LittleEndian<T> class should be removed. This class also makes debugging more painful, as the values are all hidden in containers.

So everywhere `LittleEndian<T> variableName` is used, we replace it with a simple `T variableName`, then fix all the places variableName is used with direct manipulation of the member variable without going through any getter or setter. By adding operators in previous diff, we reduced the number of places where we still use getters to a very small number.

LittleEndian<T> used to default init its value, so we need to carefully init these variables to avoid introducing bugs.

Differential Revision: D83631395
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 1, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Oct 1, 2025

@georges-berenger has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83631395.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant