Again - with safestrings or any solution you need to catch the edge case that would lead to a buffer overflow.
If you understand you need to do that then whether you use the library or the classic c functions (that’s what the library does) - it’s just equivalent : you check bounds
—
Don’t forget to check for bounds ![]()
And duplicating bytes has a CPU cost.