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

Can I change LenUint to u8? #247

Open
WuBingzheng opened this issue Sep 26, 2023 · 2 comments · May be fixed by #256
Open

Can I change LenUint to u8? #247

WuBingzheng opened this issue Sep 26, 2023 · 2 comments · May be fixed by #256

Comments

@WuBingzheng
Copy link

I want to use ArrayString to present very small strings, with about 3~15 length. u8 is enough for the length, while u32 is too bigger, taking 3 more bytes.

How can I make this? Fork this crate, change one line code, and publish a new crate?

@Chaoses-Ib
Copy link

Maybe you can use https://github.com/paulocsanz/arraystring? It uses u8 to store the length.

@WuBingzheng
Copy link
Author

Thanks.

@JakkuSakura JakkuSakura linked a pull request Dec 21, 2023 that will close this issue
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 a pull request may close this issue.

2 participants