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

Feature request: make Length writable #113

Open
alex-jitbit opened this issue May 1, 2024 · 2 comments
Open

Feature request: make Length writable #113

alex-jitbit opened this issue May 1, 2024 · 2 comments

Comments

@alex-jitbit
Copy link

alex-jitbit commented May 1, 2024

Setting Length works great to trim a StringBuilder (like, "remove last N chars" without allocation)

Also, would really help with drop-in replacements for traditional SB (it supports this)

@alex-jitbit alex-jitbit changed the title Two feature requests: make Length writable & allow setting initial buffer size (both - like in original SB) Feature request: make Length writable May 1, 2024
@alex-jitbit
Copy link
Author

I've edited the issue, because seems like you're already using 65535 as the default size which should be enough (?)

@alex-jitbit
Copy link
Author

I just realized that writable property won't work since it's a disposable struct, so maybe add a SetLength method

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

No branches or pull requests

1 participant