Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Implement Integer Bit Sizes 24, 40, 48, 56, and 64 #67

Open
SolarScuffle-Bot opened this issue Feb 8, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@SolarScuffle-Bot
Copy link

SolarScuffle-Bot commented Feb 8, 2024

Describe your feature

Allow for all byte sizes within [1, 8] for unsigned and signed integers. This simply grants finer control over how many bytes network data may use to potentially save a lot of space.

Alternatives

There are no alternatives aside from rounding to 16 or 32 bits.

Implementation Details

Serializing and deserializing a non-power of 2 will require up to 3 buffer reads and writes, and the compiler will need to handle these cases.

@SolarScuffle-Bot SolarScuffle-Bot added the enhancement New feature or request label Feb 8, 2024
@jackdotink
Copy link
Member

What is the purpose of adding 64 bit integer values, as those values cannot be represented with luau?

@sasial-dev sasial-dev added this to the 0.7 Release milestone Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants