ZString icon indicating copy to clipboard operation
ZString copied to clipboard

Feature request: make `Length` writable

Open alex-jitbit opened this issue 1 year ago • 2 comments

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 avatar May 01 '24 12:05 alex-jitbit

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

alex-jitbit avatar May 01 '24 15:05 alex-jitbit

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

alex-jitbit avatar May 01 '24 16:05 alex-jitbit

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Oct 29 '24 00:10 github-actions[bot]